Linux Distribution - a Linux OS platform information API

Edit Package python-distro
https://github.com/nir0s/distro

distro (for: Linux Distribution) provides information about the Linux distribution it runs on, such as a reliable machine-readable ID, or version information.

It is a renewed alternative implementation for Python's original platform.linux_distribution function, but it also provides much more functionality which isn't necessarily Python bound like a command-line interface.

Refresh
Refresh
Source Files
Filename Size Changed
assert_locale.patch 0000000236 236 Bytes
distro-1.6.0.tar.gz 0000053518 52.3 KB
python-distro.changes 0000004252 4.15 KB
python-distro.spec 0000002387 2.33 KB
Revision 25 (latest revision is 33)
Markéta Machová's avatar Markéta Machová (mcalabkova) accepted request 910038 from Jochen Breuer's avatar Jochen Breuer (brejoc) (revision 25)
- Update to version 1.6.0
  * 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+
  * 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]
  * 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]
Comments 2

Sebastian Wagner's avatar

Matej Cepl (mcepl) committed about 2 hours ago (revision 26)

  • Expliciting setting of locale is not necessary anymore

(gh#python-distro/distro#223).

Now the tests are failing on Leap and SLE.


Sebastian Wagner's avatar

I now disabled these builds to avoid the failures.

openSUSE Build Service is sponsored by