Closed HorlogeSkynet closed 6 years ago
Hey, little late because of holidays... π
There is some trouble on my Ubuntu machines:
Traceback (most recent call last):
File "archey.py", line 13, in <module>
import distro
ImportError: No module named 'distro'
Hey ! No problem, this is the worst part of the year for FOSS :joy:
This will be added to the release notes ; Dependencies have changed :
- lsb-release
+ python3-distro
If you run a 16.04+ distribution, you should be able to install it directly with APT.
Otherwise, you'd want to go with PIP... pip3 install distro
Have a good evening Roy, keep me up to speed :ok_hand:
Thanks for this ! Are we OK with your WSLs too ? :roll_eyes:
Yeah, I'll always test WSL! π Everything is fine! π
Sorry, I was too lazy to write that down yesterday. I thought after the last reviews it would be clear that I'll always test several systems...
Test Environments (minimum):
(all environments support IPv6 as well)
So, if I don't write anything else in the future, you can be sure that I tested it on all these systems! π
Ahhh perfect, sorry for having doubt about that ; Let's say it is because of holidays π
So the PR is okay, I'll merge this when able to build all packages... Maybe during this WE.
++
Great. :)
Hey everyone !
Description
So basically, this is what this PR bring to Archey :
lsb_release
usage, by replacing it withdistro
maintained Python module, as discussed in #36WAN_IP
, regardingwget
&dig
callsbad-continuation
PyLint warning :tada:distro
usageReason and / or context
As @eli-schwartz reported in #36,
/etc/os-release
should definitely be used instead of calling externallsb_release
script. This way, Archey would not depend anymore on its various implementations and would be less difficult to install on Fedora for instance.This is not really BC, as
python3-distro
is not available on Debian Jessie. Thus, the documentation has been updated so as to notice the users to opt for apip
installation (thedistro
module would be downloaded bypip
, and not breaking Debian packages ecosystem).Nevertheless, still looking forward to gathering some thoughts from you guys, and from @eli-schwartz of course (mostly during packages releases :relieved:).
How has this been tested ?
Test cases, Debian Buster, Debian Jessie (at the moment of writing).
Types of changes :
Checklist :
EDIT : The documentation of the
distro
module is available here.