Commit Graph

7 Commits

Author SHA1 Message Date
Javier Marcet f74b43709a python3-distro: update to version 1.9.0
- ENHANCEMENTS:

  - Refactor distro.info() method to return an InfoDict
  - Ignore the file '/etc/board-release'
  - Ignore the file '/etc/ec2_version'

- RELEASE:

  - Run Python 3.6 on Ubuntu 20.04 for CI and bump isort

- TESTS:

  - Test on modern versions of CPython and PyPy and macOS
  - Add support for ALT Linux Server 10.1 distribution
  - Add Debian Testing to the tests
  - Update archlinux resource for tests

Signed-off-by: Javier Marcet <javier@marcet.info>
2024-01-02 15:24:44 -08:00
Jeffery To 0068a50193 python-distro: Update to 1.8.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-08-17 18:44:42 +08:00
Javier Marcet 1232273626 python3-distro: update to version 1.7.0
- BACKWARD COMPATIBILITY:

  - Dropped support for EOL Pythons 2.7, 3.4 and 3.5
  - Dropped support for LSB and uname back-ends when --root-dir is
  specified
  - Moved distro.py to src/distro/distro.py

- ENHANCEMENTS:

  - Documented that distro.version() can return an empty string on
  - rolling releases
  - Documented support for Python 3.10
  - Added official support for Rocky Linux distribution
  - Added a shebang to distro.py to allow standalone execution
  - Added support for AIX platforms
  - Added compliance for PEP-561

- BUG FIXES:

  - Fixed include_uname parameter oversight
  - Fixed crash when uname -rs output is empty
  - Fixed Amazon Linux identifier in distro.id() documentation
  - Fixed OpenSuse >= 15 support
  - Fixed encoding issues when opening distro release files
  - Fixed linux_distribution regression

Signed-off-by: Javier Marcet <javier@marcet.info>
2022-03-08 21:54:05 -08:00
Javier Marcet 0d4744f214 python3-distro: update to version 1.6.0
- BACKWARDS COMPATIBILITY:

  - Deprecated the distro.linux_distribution() function. Use
  distro.id(), distro.version() and distro.name() instead [#296]
  - Deprecated Python 2.7, 3.4 and 3.5 support. Further releases will
  only support Python 3.6+

- ENHANCEMENTS:

  - Added type hints to distro module [#269]
  - Added __version__ for checking distro version [#292]
  - Added support for arbitrary rootfs via the root_dir parameter
  [#247]
  - Added the --root-dir option to CLI [#161]
  - Added fallback to /usr/lib/os-release when /etc/os-release isn't
  available [#262]

- BUG FIXES:

  - Fixed subprocess.CalledProcessError when running lsb_release
  [#261]
  - Ignore /etc/iredmail-release file while parsing distribution
  [#268]
  - Use a binary file for /dev/null to avoid TextIOWrapper overhead
  [#271]

- RELEASE:

 - Moved repository from nir0s/distro to python-distro/distro on
 GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
2021-08-03 16:17:35 +02:00
Jeffery To 836b67db90
python-packages: Remove variants
These packages were in the PR stage when the cleanup occurred and so
still had VARIANT:=python3.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-06-14 03:29:59 +08:00
Javier Marcet 94dbeabaab docker-compose: fix depends after merge in master and move to utils
Signed-off-by: Javier Marcet <javier@marcet.info>
2020-06-12 11:57:42 +02:00
Javier Marcet 79873a31e1 python3-distro: add a new package
Signed-off-by: Javier Marcet <javier@marcet.info>
2020-06-08 17:07:33 +02:00