Author vstinner
Recipients christian.heimes, cstratak, doko, matrixise, r.david.murray, vstinner
Date 2020-11-24.13:44:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606225485.07.0.134875911139.issue28468@roundup.psfhosted.org>
In-reply-to
Content
> os-release is covered by the distro module.

Ah, I didn't know.

https://pypi.org/project/distro/

"""
The distro package implements a robust and inclusive way of retrieving the information about a distribution based on new standards and old methods, namely from these data sources (from high to low precedence):

    The os-release file /etc/os-release, if present.
    The output of the lsb_release command, if available.
    The distro release file (/etc/*(-|_)(release|version)), if present.
    The uname command for BSD based distrubtions.
"""

You're right, not only os-release is used, but it has the highest priority.


> There's no need to expose a second implementation as another API in the standard library.

Usually, a new experimental feature is developed on PyPI. Once it becomes stable and mature enough, we consider to include it into the stdlib.

Since the file format became standard and the file became available on almost all Linux distributions, it seems like we reached this point, no?


Christian: can you please try to contact the distro maintainer, Nir Cohen, to ask him to help us on this issue?
History
Date User Action Args
2020-11-24 13:44:45vstinnersetrecipients: + vstinner, doko, christian.heimes, r.david.murray, matrixise, cstratak
2020-11-24 13:44:45vstinnersetmessageid: <1606225485.07.0.134875911139.issue28468@roundup.psfhosted.org>
2020-11-24 13:44:45vstinnerlinkissue28468 messages
2020-11-24 13:44:44vstinnercreate