Skip to main content

Aliases for active openSUSE releases

Project description

This project provides a list of the currently maintained openSUSE distributions. It is the openSUSE equivalent of fedora-distro-aliases.

Usage

>>> from opensuse_distro_aliases import get_distro_aliases
>>> aliases = get_distro_aliases()

Obtain the name and version of all currently active releases:

>>> [f"{d.name} {d.version}" for d in aliases["opensuse-all"]]
['openSUSE Leap 15.6', 'openSUSE Leap 15.5', 'openSUSE Leap Micro 6.0', 'openSUSE Leap Micro 5.5', 'openSUSE Tumbleweed 20240714']

Get the corresponding main development project in the Open Build Service:

>>> [f"{d.name}: {d.obs_project_name}" for d in aliases["opensuse-all"]]
['openSUSE Leap: openSUSE:Leap:15.6', 'openSUSE Leap: openSUSE:Leap:15.5', 'openSUSE Leap Micro: openSUSE:Leap:Micro:6.0', 'openSUSE Leap Micro: openSUSE:Leap:Micro:5.5', 'openSUSE Tumbleweed: openSUSE:Factory']

The caveat of the function get_distro_aliases is that it performs network calls, which can be slow, flaky or otherwise unavailable (e.g. in koji or OBS builds). Since the openSUSE distribution releases are quite seldom, we provide the pre-fetched result of get_distro_aliases as the constant CACHED_ACTIVE_DISTRIBUTION_ALIASES. The only difference between the pre-fetched and the fetched value should be the version of openSUSE Tumbleweed (this version changes daily, but has otherwise little significance).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opensuse_distro_aliases-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

opensuse_distro_aliases-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file opensuse_distro_aliases-0.2.0.tar.gz.

File metadata

File hashes

Hashes for opensuse_distro_aliases-0.2.0.tar.gz
Algorithm Hash digest
SHA256 edecbc3db1f0c21935ae38b23d635f27afcab8d058badd749633966757a8c1e0
MD5 07cbd552e60edc001b0af53cdc387122
BLAKE2b-256 e048b5ae87d1fd53702132c6eaed6ebe4826b57b5ae1f7200900085ef85bcb88

See more details on using hashes here.

File details

Details for the file opensuse_distro_aliases-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opensuse_distro_aliases-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e483452e206685cefc77637826d7ddc8bde6820afa75f621e2dd507287521718
MD5 dc174c4f5a6bbe402e7efa68fd36c2bd
BLAKE2b-256 8a75a7672c0a421e5b6b3f8833faec458f1bf03ec50b3f31ca91834ecdf93ed7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page