1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-04-23 04:00:12 +02:00

67 Commits

Author SHA1 Message Date
Samuel FORESTIER
6163bc8605 [VERSION] Bumps to v4.7.1 2020-04-24 15:40:00 +02:00
Samuel FORESTIER
e72903f910 [DOC] Don't center-align elements in README dependencies table 2020-04-24 15:31:36 +02:00
Samuel FORESTIER
e570531185 [DOC] [PACKAGING] Fixes packages names example in install instructions 2020-04-24 15:13:31 +02:00
Samuel FORESTIER
b02f4c8f4a [DOC] Centers preview on README (as it is shorter than the max. width) 2020-04-24 14:03:29 +02:00
Samuel FORESTIER
afe8a35d26 [TEMPERATURE] [FEATURE] Allows users to specify chipsets for avg. temp.
+ New configuration option `temperature.sensors_chipsets`

- [BREAKING (?)] `sensors` sub-call won't have its STDERR redirected to `/dev/null` anymore.
-                It allows occurring errors to be shown, instead of silently fail in temperature computations.
-                This could happen if the user specifies (a) wrong chipset identifiers.
-                Errors/warnings may still be silenced at the Archey level using the `suppress_warnings` configuration option.

- This new feature could not be unit-tested as it completely relies on the `sensors` sub-call, to which we pass chipsets identifiers.
2020-04-24 13:52:43 +02:00
Samuel FORESTIER
b7fc04f97f [FEATURE] Adds support for ANSI_COLOR (from os-release)
> See <https://www.freedesktop.org/software/systemd/man/os-release.html#ANSI_COLOR=>.

+ A new configuration option (`colors_palette.honor_ansi_color`) has been added to disable this behavior
+ Improves the way we "mock" the selected distribution in `Output` testing module
2020-04-23 19:40:57 +02:00
Michael Bromilow
e36ef8cf43
[DISK] BTRFS implementation fixes (#56)
+ Fixes `btrfs-progs` usages so `root` privileges are no longer required
+ Fixes allocated disk space (instead of actual used space) reported as used
* Fixes devices in groups (e.g. RAID 1) from being counted as having double the space used and available
+ Adds a test for a BTRFS group configuration.
+ Properly sets `btrfs-progs` as project dependency
2020-04-22 12:29:13 +00:00
Samuel FORESTIER
3763fd2f35 [DOC] s/with PIP/from PyPI/ 2020-04-22 14:00:58 +02:00
Samuel FORESTIER
5780d172a4 Adds a new PIP badge in README (and re-orders them) 2020-03-29 17:54:21 +02:00
Samuel FORESTIER
6ce3401db3 Updates a link and properly documents packaging procedure for end-users 2020-03-28 10:36:29 +01:00
Samuel FORESTIER
cab20f1637 Bumps Archey to v4.7.0 ! Tag is on its way 2020-03-27 15:39:04 +01:00
Samuel FORESTIER
e681c78f91
Reworks and publishes sources of the packaging process (#54)
+ By using FPM, SetupTools & Twine, publishes packages distributions sources
+ During CI, run the local Archey module previously installed with PIP
+ Fixes some required and recommended packages names in documentation
+ Signs Debian packages with `debsigs`
+ Adds source and wheel Python distribution packages generation
+ Enforces `twine check` on source and wheel distribution packages
+ Implements automatic `twine upload` with GPG signature
+ Improves SetupTools module meta-data
2020-03-27 13:57:24 +00:00
Samuel FORESTIER
5ef16f095e Adds a new badge showing the number of pending Pull Requests on GitHub 2020-03-26 14:22:28 +01:00
Samuel FORESTIER
7da2db939b
LAN_IP, Model and Packages entries reworks (#51)
* Reworks the `Packages` entry, mostly simplifying its logic
* Reworks `LAN_IP` entry and adds a new `lan_ip_v6_support` option
* Reworks the `Model` entry :
    + Checks for virtualization contexts first
    + Adds `systemd-detect-virt` support, allowing `Model` population for non-root users
    + Simplifies the whole class logic definition
    - Removes `default_strings.bare_metal_environment` option

Bonus :
* `wget` is not being used anymore, fixes documentation
2019-12-26 21:10:22 +00:00
Samuel FORESTIER
ec884cc1e4 Minor change to configuration entries :
+ Keeps options in alphabetical order (`configuration.py` & `README.md`)
+ Adds new `limits` section to default template (`config.json`)
+ Changes syntax coloration of documentation to JavaScript, and fixes it
2019-12-24 10:14:02 +01:00
Chris Roth
1c304a2d92 Allow configurable thresholds for disk and RAM colors (#50)
Co-authored-by: Chris Roth <czr137@users.noreply.github.com>
2019-12-24 09:02:07 +00:00
Samuel FORESTIER
63f6de301e
Replaces wget fall-back call by a proper urllib.request usage (#46)
This patch (finally) documents the WAN_IP entry internals too.
2019-10-05 14:21:47 +00:00
Samuel FORESTIER
d9bc6aec53
Better temperature detection feature (closes #45)
On the idea of @EntityCuber in #45, this patch re-implements the **Temperature** entry using `lm-sensors` package (when available).
It also greatly improves the entry's testing suite and should be fully-backward compatible with previous versions of Archey 4.
2019-09-21 09:16:05 +00:00
Anthony Lannutti
4dcf479826 Software Architecture major rework (#41)
* Moved constants and logo ascii art out of the main file
* Moved Configuration class to separate file
* Moved Output class to a separate file
* Moved hostname class definition to it's own separate file
* Moved Model class definition to it's own file
* Moved Kernel class to its own file
* Moved uptime class definition to it's own file
* Moved Disk class definition to its own file
* Moved RAM class definition to it's own file
* Moved CPU class definition to it's own file
* Moved LanIp class definition to it's own file
* Moved WanIp class definition to a separate file
* Moved Packages class definition to separate file
* Moved User class definition to its own file
* Moved entry class definitions to their own directory
* Moved GPU entry class definition to a separate file
* Moved temperature entry class definition to a separate file
* Moved terminal entry class definition to separate file
* Moved shell entry class definition to separate file
* Rewrited the `LanIp` module to handle more cases and optimizations
* Moved window manager and desktop environment class definitions to separate files
* Moved distro class definition to separate file
* Removed direct use of COLOR_DICT in disk.py and ram.py
* Moved unit tests and modified import paths
* Moved {DE,WM}_DICT constants to their respective modules
* Made `Configuration` & `Processes` (new class) act as singletons
* Set the `Configuration` internal `config` dictionary to "private" attribute

+ Now relies on a `.pylintrc` file for Pylint (now almost fully-compliant)
+ Fixed typos
+ Added another dependency on `netifaces`, but this should remove the assumption about tools available in the user's environment
+ The project may now be run as a Python module
+ Marked Python 3.8 as supported for SetupTools
+ Added instructions (and tests) to build a standalone version of Archey
+ Adds @lannuttia to COPYRIGHT (initiator of the major rework)

- Removed the dependency to `net-tools`


Co-authored-by: Samuel FORESTIER <dev@samuel.domains>
2019-07-22 11:56:03 +02:00
Samuel FORESTIER
e034a3ab8b
Another README update (a bit late) 2019-03-04 23:05:20 +01:00
Samuel FORESTIER
abf3cac7e8
Updates image preview in README 2018-12-30 12:00:36 +01:00
Samuel FORESTIER
90cbe0347c Updates link to archey4-packaging repository (third Git instance) 2018-12-22 21:53:54 +01:00
Samuel FORESTIER
ac14f8968f Improves documentation consistency and fixes name of future RPM packages 2018-08-25 14:47:11 +02:00
Samuel FORESTIER
3ce1972070 Fixes some mistakes in documentation & Updates some dependencies name
+ .RPM packages should be available soon due to @Xysto work !
2018-08-25 14:47:11 +02:00
Samuel FORESTIER
443784992a Bumps version for the next release and updates doc with new dependencies 2018-08-25 14:47:11 +02:00
Samuel FORESTIER
d6621a6d04 Fixes very old links to config file on README 2018-08-02 17:55:58 +02:00
Samuel FORESTIER
c6335482d0 Moves README description on top of badges 2018-08-02 17:55:58 +02:00
Samuel FORESTIER
05fe884c79 Bumps version for next release 2018-07-23 21:42:06 +02:00
Samuel FORESTIER
0dda395502 Changes badges style and adds some more 2018-07-23 21:40:55 +02:00
Samuel FORESTIER
64c75d7c96
Improves code styles, development flows & test cases (#33)
* Improves README & GitHub templates
* Fixes one test case failing due to local user configuration changes
* Makes the Archey sources (almost) compliant to PyLint
* Travis : Adds PyLint checks & Python 3.7 job
2018-07-15 22:26:49 +02:00
Samuel FORESTIER
ada0632d7d Version bumping 2018-05-13 09:39:38 +02:00
Samuel FORESTIER
52b7174b2d Simple documentation improvements 2018-05-13 09:35:01 +02:00
Samuel FORESTIER
5fb3939652
Warns the user about problems with UTF8 encoding instead of crashing (#28)
+ Fixes installation instructions and improves testing procedure
2018-02-28 17:24:07 +01:00
Samuel FORESTIER
b9892030ff
Fixes manual instructions (thanks to @Mikescops) 2018-02-20 10:52:22 +01:00
Samuel FORESTIER
0193cef555
Adds instructions for PyPI and some badges & Fixes install from source (#27) 2018-02-19 15:58:55 +01:00
Samuel FORESTIER
e96301fde7
Adds Travis and badges (#25)
* Adds `.travis.yml` to project root for Travis CI

* Adds badges to README
2018-02-19 08:02:51 +01:00
Samuel FORESTIER
3094ebb0cc
Merge v4.4 base changes, see below for details :
* Adds test cases
* Now compatible with setuptools
* Improves documentation
* Sets a real software architecture for a Python project
* New code styles to improve readability
* Now GPU will sort entries by relevancy and output only the best one
* Adds new strings to configuration for translation
* Major optimizations of external calls
* Packages entry will now output more accurate values, and is compatible with non-English locales
2018-02-19 07:22:02 +01:00
Samuel FORESTIER
bafef6e399
Adds suppress_warnings option to configuration (#23)
* Adds `suppress_warnings` option

* Moves configuration loading into `Configuration` initialization section

* Now uses a real `main()` method for future test cases
2018-02-06 10:57:48 +01:00
Samuel FORESTIER
2054e4521e Handles the absence of wget and precises some dependencies on README 2018-02-02 21:52:05 +01:00
AdJaGu
adf5fc3f14 Add config options for timeout (#21)
* Adds config.get('timeout')['ipv6'] and config.get('timeout')['ipv4'] to archey

* Add timeout option with separate timers for ipv6 and ipv4.

* Renames option name + PEP8

* Adds new options to documentation

* Adds new timeout option to default values (in case of standalone execution)

* Sets default timeouts to 1 second instead of 5
2018-02-01 22:46:37 +01:00
Phoenix1747
a097eede43
Update README.md 2018-01-30 19:13:15 +01:00
Samuel FORESTIER
f5880280e8 PEP8 minor fix + Externalizes copyrights and license sections 2018-01-30 18:31:11 +01:00
Roy Schroedel
c6fa9acf19 IPv6 support for LAN_IP and WAN_IP plus max. number for LAN addresses (#15)
* Adds optional IPv6 support (enabled by default)
* Adds option to define the maximum number of LAN addresses to display (settable to `false` for an unlimited display)
* Improves documentation of new options available
* Reworks completely `WAN_IP` entry (with changes brought by @Si13n7)

* Improves consistency between `hostname -I` and "manual way" for `LAN_IP`
2017-12-28 21:14:37 +00:00
Samuel FORESTIER
959598bb7b Fixes (and updates the preview of) the README before new release 2017-12-27 11:19:16 -05:00
Samuel FORESTIER
9011de9400 Adds the colors palette to Terminal (see README.md for new option) 2017-12-18 16:03:22 -05:00
Samuel FORESTIER
239184fbec Implements configuration "locking" and improves documentation 2017-12-14 15:09:47 -05:00
Samuel FORESTIER
7d6c795d68 Let's reflect the fact that we don't have a dev branch anymore 2017-12-10 15:05:24 -05:00
Samuel FORESTIER
87538e935c
Merge branch 'feature/external_configuration'
* First draft of external configuration feature

* Updates README with external configurations and updates image preview

* Specifies the optional aspect of external configuration in the README
2017-12-10 19:22:33 +00:00
Samuel FORESTIER
948c21b456 Updates dependencies (will be added to packages to the next release) 2017-12-08 17:36:52 -05:00
Samuel FORESTIER
7312554038 Packages are available ! Let's update the documentation 2017-11-28 22:54:24 -05:00