1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-05-13 04:00:19 +02:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Samuel FORESTIER
552d03754b [META] Bumps Archey to v4.13.3 2021-11-13 15:07:50 +01:00
Samuel FORESTIER
ec5321f106 [DOC] Recommends a terminal monospaced font to users 2021-11-13 13:33:51 +01:00
Samuel FORESTIER
3c72bd3e18 [DISTROS] Adds support for Rocky Linux
> The ASCII logo is inspired from Neofetch (see dylanaraps/neofetch#1743)

Co-Authored-By: Luca Robbiano <lucarobbiano@gmail.com>
2021-11-13 13:29:08 +01:00
Samuel FORESTIER
aa664a3999 [DISTRO] Removes square brackets around architecture from entry output 2021-11-13 12:01:27 +01:00
Samuel FORESTIER
ce2bb00a1b [META] Adds official (upcoming) support for Python 3.11 2021-11-13 11:55:31 +01:00
9 changed files with 59 additions and 9 deletions

@ -21,6 +21,7 @@ jobs:
# - '3.8'
- '3.9'
- '3.10'
- '3.11-dev'
- 'pypy3'
steps:
@ -46,7 +47,9 @@ jobs:
- name: Run our test suite
run: python -m unittest
# Currently disabled against Python 3.11.
- name: Standalone building (with PEX)
if: ${{ matrix.python-version != '3.11-dev' }}
run: |
pex \
-o dist/archey \
@ -68,8 +71,9 @@ jobs:
rm dist/archey
# Disabled against PyPy (see <https://stackoverflow.com/a/22245203>).
# Currently disabled against Python 3.11.
- name: Standalone building (with PyInstaller)
if: ${{ matrix.python-version != 'pypy3' }}
if: ${{ matrix.python-version != 'pypy3' && matrix.python-version != '3.11-dev' }}
run: |
pyinstaller \
--distpath dist \

@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project (partially) adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v4.13.3] - 2021-11-13
### Added
- Official Rocky Linux distribution support
- Official upcoming support for Python 3.11
- Support for `pkgin` (NetBSD) package manager
- Support for motherboard DMI information in `Model`
- Document terminal monospaced font recommendation for ASCII art
### Changed
- Fix possible `Uptime` discrepancies on macOS 10.12+
- Prevent `system_profiler` STDERR logs output on macOS
- Remove square brackets around architecture from `Distro` entry output
- `virt-what` and/or `dmidecode` probing for `Model`, even for unprivileged users
## [v4.13.2] - 2021-10-16
### Added
- Support for `maim` ("Make image") screenshot back-end
@ -347,7 +361,8 @@ and this project (partially) adheres to [Semantic Versioning](https://semver.org
- Main bugs fixes
- Project officially forked from djmelik/archey
[Unreleased]: https://github.com/HorlogeSkynet/archey4/compare/v4.13.2...HEAD
[Unreleased]: https://github.com/HorlogeSkynet/archey4/compare/v4.13.3...HEAD
[v4.13.3]: https://github.com/HorlogeSkynet/archey4/compare/v4.13.2...v4.13.3
[v4.13.2]: https://github.com/HorlogeSkynet/archey4/compare/v4.13.1...v4.13.2
[v4.13.1]: https://github.com/HorlogeSkynet/archey4/compare/v4.13.0...v4.13.1
[v4.13.0]: https://github.com/HorlogeSkynet/archey4/compare/v4.12.0...v4.13.0

@ -121,10 +121,9 @@ brew install archey4
```bash
# If you want the latest release :
LATEST_VERSION="v4.13.2"
wget "https://github.com/HorlogeSkynet/archey4/archive/${LATEST_VERSION}.tar.gz"
tar xvzf "${LATEST_VERSION}.tar.gz"
cd "archey4-${LATEST_VERSION}/"
wget -qO archey4.tar.gz "https://github.com/HorlogeSkynet/archey4/archive/v4.13.3.tar.gz"
tar xvzf archey4.tar.gz
cd archey4-*/
# If you want the latest (stable) changes :
git clone https://github.com/HorlogeSkynet/archey4.git
@ -407,6 +406,8 @@ Any improvement would be appreciated.
## Notes to users
* For a good ASCII art display, a terminal monospaced font is recommended (see <https://en.wikipedia.org/wiki/Monospaced_font>).
* If you experience any trouble during the installation or usage, please do **[open an issue](https://github.com/HorlogeSkynet/archey4/issues/new)**.
* If you had to tweak this project to make it work on your system, please **[open a pull request](https://github.com/HorlogeSkynet/archey4/pulls)** so as to share your modifications with the rest of the world and participate in this project !

@ -1,3 +1,3 @@
"""Simple module storing the current project version"""
__version__ = 'v4.13.2'
__version__ = 'v4.13.3'

@ -45,6 +45,7 @@ class Distributions(Enum):
POP = 'pop'
PARABOLA = 'parabola'
RASPBIAN = 'raspbian'
ROCKY = 'rocky'
RHEL = 'rhel'
SLACKWARE = 'slackware'
UBUNTU = 'ubuntu'

@ -51,7 +51,7 @@ class Distro(Entry):
def output(self, output):
output.append(
self.name,
f"{{}} [{self.value['arch']}]".format(
f"{{}} {self.value['arch']}".format(
self.value['name'] or self._default_strings.get('not_detected')
)
)

28
archey/logos/rocky.py Normal file

@ -0,0 +1,28 @@
"""Rocky Linux logo"""
from archey.colors import Colors
COLORS = [Colors.GREEN_BRIGHT]
LOGO = [
"""{c[0]} __wgliliiligw_, """,
"""{c[0]} _williiiiiiliilililw, """,
"""{c[0]} _%%iiiiiilililiiiiiiiiiii_ """,
"""{c[0]} .Qliiiililiiiiiiililililiilm. """,
"""{c[0]} _iiiiiliiiiiililiiiiiiiiiiliil, """,
"""{c[0]} .lililiiilililiiiilililililiiiii, """,
"""{c[0]} _liiiiiiliiiiiiiliiiiiF{{iiiiiilili,""",
"""{c[0]} jliililiiilililiiili@` ~ililiiiiiL""",
"""{c[0]} iiiliiiiliiiiiiili>` ~liililii""",
"""{c[0]} liliiiliiilililii` -9liiiil""",
"""{c[0]} iiiiiliiliiiiii~ "4lili""",
"""{c[0]} 4ililiiiiilil~| -w, )4lf""",
"""{c[0]} -liiiiililiF' _liig, )'""",
"""{c[0]} )iiiliii@` _QIililig, """,
"""{c[0]} )iiii>` .Qliliiiililw """,
"""{c[0]} )<>~ .mliiiiiliiiiiil, """,
"""{c[0]} _gllilililiililii~ """,
"""{c[0]} giliiiiiiiiiiiiT` """,
"""{c[0]} -^~$ililili@~~' """
]

@ -57,7 +57,7 @@ class TestDistroEntry(unittest.TestCase):
Distro.output(distro_intance_mock, output_mock)
self.assertEqual(
output_mock.append.call_args[0][1],
f"{DEFAULT_CONFIG['default_strings']['not_detected']} [ARCHITECTURE]"
f"{DEFAULT_CONFIG['default_strings']['not_detected']} ARCHITECTURE"
)

@ -66,6 +66,7 @@ Remain *maintained*, *community-driven* and *highly-compatible* with yesterday's
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: System'
]