HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
295 stars 37 forks source link

Drops `lsb-release` usage, adds SlackWare & Improves code styles #37

Closed HorlogeSkynet closed 6 years ago

HorlogeSkynet commented 6 years ago

Hey everyone !

Description

So basically, this is what this PR bring to Archey :

Reason and / or context

As @eli-schwartz reported in #36, /etc/os-release should definitely be used instead of calling external lsb_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 a pip installation (the distro module would be downloaded by pip, 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.

Si13n7 commented 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'
HorlogeSkynet commented 6 years ago

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:

HorlogeSkynet commented 6 years ago

Thanks for this ! Are we OK with your WSLs too ? :roll_eyes:

Si13n7 commented 6 years ago

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! 😜

HorlogeSkynet commented 6 years ago

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.

++

eli-schwartz commented 6 years ago

Great. :)