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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for opensuse_distro_aliases-0.2.1.tar.gz
Algorithm Hash digest
SHA256 46319d3b2ec5b739d4b5e160fe9c90ca8623aec3255514c181cc2bc32c782a7e
MD5 ef2c798580827005f62281a0093c368f
BLAKE2b-256 74ad4b26425e570634ff2c314ae54186fa85a239e11baaf7dc6eeea740193099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opensuse_distro_aliases-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 005aa407de967254e960565d05acc91eba7a75ea3e7b60c4585053c627fa0efb
MD5 64ceba1853d8abe2ef8bddeb39693f69
BLAKE2b-256 bc6159883f563930e83a5bba8102e7a1d2a4317ae5dc36caf4e6a1ad37f2867e

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