Recent Releases of distro
distro - v1.9.0
ENHANCEMENTS:
* Refactor distro.info() method to return an InfoDict [#360]
* Ignore the file /etc/board-release [#353]
* Ignore the file /etc/ec2_version [#359]
RELEASE: * Run Python 3.6 on Ubuntu 20.04 for CI and bump isort [#355]
TESTS: * Test on modern versions of CPython and PyPy and macOS [#362] * Add support for ALT Linux Server 10.1 distribution [#354] * Add Debian Testing to the tests [#356] * Update ArchLinux resource for tests [#352]
- Python
Published by HorlogeSkynet about 2 years ago
distro - v1.8.0
BACKWARD COMPATIBILITY:
* Replace setup.py with build [#342]
ENHANCEMENTS:
* Lowered LinuxDistribution._distro_release_info method complexity [#327]
* Added official support for Buildroot distribution [#329]
* Added official support for Guix distribution [#330]
* Added support for /etc/debian_version [#333] & [#349]
* Fixed a typography in CONTRIBUTING.md [#340]
* Improved README.md "Usage" code block [#343]
RELEASE: * Bumped black to v22.3.0 in pre-commit.ci configuration [#331] * Enabled GitHub Dependabot to keep GitHub Actions up to date [#335]
- Python
Published by HorlogeSkynet over 3 years ago
distro - v1.7.0
BACKWARD COMPATIBILITY:
* Dropped support for EOL Pythons 2.7, 3.4 and 3.5 [#281]
* Dropped support for LSB and uname back-ends when --root-dir is specified [#311]
* Moved distro.py to src/distro/distro.py [#315]
ENHANCEMENTS:
* Documented that distro.version() can return an empty string on rolling releases [#312]
* Documented support for Python 3.10 [#316]
* Added official support for Rocky Linux distribution [#318]
* Added a shebang to distro.py to allow standalone execution [#313]
* Added support for AIX platforms [#311]
* Added compliance for PEP-561 [#315]
BUG FIXES:
* Fixed include_uname parameter oversight [#305]
* Fixed crash when uname -rs output is empty [#304]
* Fixed Amazon Linux identifier in distro.id() documentation [#318]
* Fixed OpenSuse >= 15 support [#319]
* Fixed encoding issues when opening distro release files [#324]
* Fixed linux_distribution regression introduced in [#230] [#325]
- Python
Published by sethmlarson about 4 years ago
distro - v1.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.
- Python
Published by sethmlarson over 4 years ago
distro - v1.5.0
BACKWARD COMPATIBILITY: * Keep output as native string so we can compatible with python2 interface [#248]
ENHANCEMENTS:
BUG FIXES: * Fix detection of RHEL 6 ComputeNode [#255] * Fix Oracle 4/5 lsb_release id and names [#250] * Ignore /etc/plesk-release file while parsing distribution [#246]
TESTS: * Test on MidnightBSD [#254]
RELEASE: * Remove build testing on Python 3.3 and add pypy 3.5 and Python 3.7 and 3.8 [#244] * Fix Windows build due to Appveyor not supporting builds on Python 2.7 anymore [#257]
Additionally, The Python2.6 branch was fixed to support distro version 1.4.0. It is now passing all tests. Thanks @abadger!
- Python
Published by nir0s almost 6 years ago
distro -
BACKWARD COMPATIBILITY: * Prefer the VERSION_CODENAME field of os-release to parsing it from VERSION [#230]
BUG FIXES: * Return unameinfo from the uname_info() method [#233] * Fixed CloudLinux id discovery [#234] * Update Oracle matching [#224]
DOCS: * Update Fedora package link [#225] * Distro is the recommended replacement for platform.linux_distribution [#220]
RELEASE: * Use Markdown for long description in setup.py [#219]
Additionally, The Python2.6 branch was fixed and rebased on top of master. It is now passing all tests. Thanks abadger!
- Python
Published by nir0s about 7 years ago
distro -
ENHANCEMENTS: * Added support for OpenBSD, FreeBSD, and NetBSD [#207]
TESTS: * Add test for Kali Linux Rolling [#214]
DOCS: * Update docs with regards to #207 [#209] * Add Ansible reference implementation and fix arch-linux link [#213] * Add facter reference implementation [#213]
- Python
Published by nir0s almost 8 years ago
distro -
- Lazily load parsers to speed up import time.
- Don't raise import error on non-linux os.
- Decode stdout of shell sys.getfilesystemencoding().
- Explicitly set Python versions for flake8 tests.
- Python
Published by nir0s about 8 years ago
distro -
Note: This version removes official support for Python 2.6. If you need a version that is tested on Python 2.6, please use distro<=1.0.4.
In addition:
- Add tests for MandrivaLinux, CloudLinux 5,6,7
- Modify MANIFEST to include resources for tests and docs in source tarballs (https://github.com/nir0s/distro/pull/189/files#diff-97c91a104c431d0c365565d3ac03ac13)
- Python
Published by nir0s about 8 years ago
distro -
1.0.4 (2017.04.01)
- Fix not being able to read
/etc/and yet able to read release files inside it.
- Python
Published by nir0s almost 9 years ago
distro -
1.0.3 (2017.03.19)
- Add manual mapping for
redhatenterpriseserver(previously only redhatenterpriseworkstation was mapped) - Return empty information when failing to read a seemingly version related file due to IO or OS errors.
- When using the CLI without providing the -j flag, printout keys even if their values are empty.
- Replace nose with pytest
- Add RHEL5 test case
- Add OpenELEC test case
- Update supported Python versions (with py36)
- Update classifiers
- Python
Published by nir0s almost 9 years ago
distro -
- Add MANIFEST file (which also includes the LICENSE as part of Issue #139)
- Default to releasing using Twine (as per Issue #121)
- Update license in setup.py
- Test on py33, py36 and py3 based flake8
- Add setup.cfg file
- Python
Published by nir0s about 9 years ago
distro -
- Prettify output when running
distro -j - Decode output of
lsb_releaseas utf-8 - Mend code coverage
- Logger now uses
message %s, stringform to not-evaulate log messages if unnecessary - Add landscape.io code-quality monitoring
- Add CONTRIBUTING.md
- Python
Published by nir0s about 9 years ago
distro - AdHoc v1.0.0 Release
- Add a CLI and a
distroentry point. For Python 2.6, argparse will be installed - Add many test cases (e.g. Raspbian 8, CoreOS, Amazon Linux, Scientific Linux, Gentoo, Manjaro)
- Make distro non-importable on non-compatible platforms (e.g. Windows and tested via AppVeyor)
- Completely redo the testing framework to make it easier to add tests
- Remove six as a dependency
- Emit stderr if
lsb_releasefails - Fix some encoding related issues
- We now use
bytesinvariantly - Test on pypy
- Python
Published by nir0s about 9 years ago
distro -
- Introduces a new name.
- No longer a package.
constants.pyhas been removed and distro is now a single module. - Documentation fixes.
distro.info()now receives best and pretty flags.- Added Linux Mint test case.
- Removed
get_prefix fromget_*_release_attrfunctions. - Now testing on Python 3.4.
- Codename is now passed in
distro.info()
- Python
Published by nir0s almost 10 years ago
distro - Release v0.5.0
This release contains most enhancements that were in the pipe, and is ready for serious use. A few open discussions points exist though, and this is why this release is marked as a pre-release.
API documentation does exist and is complete.
This version is available on PyPI:
pip install ld
Testing could still be improved (see the test-related open issues), but the unit tests at this point cover the major distros and are fairly complete.
- Python
Published by andy-maier almost 10 years ago
distro -
- Redhat should now work
- Full Test Coverage and a more organized testing framework
- Added some tests for additional distros and
- Fixed some minor bugs
- Preparations for first stable release.
- Python
Published by nir0s about 10 years ago
distro -
- Added missing docstrings
- Basing LSB info on
lsb_release -ainstead of/etc/lsb-release. Apparently, the file is not a part of the standard.. but the command is. ld.info()no longer containsnameandcodenamefields as they're not machine readable by default.ld.name()andld.version()implementations are now more consistent between types of lookup mechanisms. Overall consistency improved.- Testing coverage is now 96%
- Python3 fixes applied.
- Python
Published by nir0s about 10 years ago
distro -
This is the first official release of ld. - It is currently tested on Python 2.6, 2.7 and 3.5 - from here on out, contributions are welcome for additional versions, if required. - There are still inconsistencies and other caveats stated in the README. Read these before using. - Functionality is there in terms of retrieving the relevant types of information. Now, we need to expand it to support as many distro-specific cases.
- Python
Published by nir0s about 10 years ago