Closed jpavlav closed 2 years ago
@jpavlav Hi Justin, very nice to meet you. I'll go ahead and merge this one now.
Have a good weekend. = )
@jpavlav Thank you for the quick merge! Curious, do you think that this latest master can be pushed up to PyPI?
@jpavlav Done! I just uploaded version 3.0.5.
Hello @mraygalaxy! I work with @jdesfossez at DigitalOcean. During some testing of
cbtool
on Python3.8, ran into an issue with the dependencies checker. As it turns out thelinux_distribution()
method was removed from theplatform
module in the standard lib in Python3.7.Related Python Bugs (discussion about removing the method):
https://bugs.python.org/issue1322
https://bugs.python.org/issue28167
Try to import
distro
. If version below 3.7, pass, else, raise exception.distro
is a requirement for Python >= 3.7Try to use
platform.linux_distribution()
. If anAttributeError
is raised (indicating thelinux_distribution
method is no longer available), usedistro.name()
,distro.version()
,distro.id()
to obtain the same information from thedistro
package.Include
distro
insetup.py
to cover package installation.