[issue28167] remove platform.linux_distribution()

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7cc1fa40b76de34a0fe86162667c87ce7a18f33d by Victor Stinner in branch 'master': bpo-28167: Remove platform._dist_try_harder() (GH-10787) https://github.com/python/cpython/commit/7cc1fa40b76de34a0fe86162667c87ce7a18f33d --

[issue28167] remove platform.linux_distribution()

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10031 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: Actually, the scope (right balance between usefulness and maintainability) is probably the hardest real problem to solve here. PyPI lets you iterate on that. For a straight-to-stdlib module, you'd need to get it exactly right on the first time. --

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: > I wasn't aware that starting out with a PyPI module is the only accepted > process for getting functionality into stdlib. It's the main way things should get in. (Other ways exist, for example, dataclasses were added as simplification/merging of several

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread rb
rb added the comment: Apologies for my tone. I wasn't aware that starting out with a PyPI module is the only accepted process for getting functionality into stdlib. That certainly is a lot of work for what would be a trivial handful of lines to parse key/value pairs and handle error paths,

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: In the recommended library, distro, real-world issues blew the code size up to 1000 lines of code and the open issue count to 15 – so while it's definitely useful, it doesn't seem either fully complete or trivial to maintain:

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread rb
rb added the comment: > Maintaining the necessary logic Python is not really possible in the stdlib. > It's better to have a PyPI module for this which can be updated much more > easily. The /etc/os-release syntax is stable, the file is implemented nearly everywhere and is unlikely to

[issue28167] remove platform.linux_distribution()

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: FYI I created bpo-33600: "[EASY DOC] Python 2: document that platform.linux_distribution() has been removed". -- ___ Python tracker

[issue28167] remove platform.linux_distribution()

2018-05-20 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks for closing that one. -- ___ Python tracker ___

[issue28167] remove platform.linux_distribution()

2018-05-20 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -6650 ___ Python tracker ___ ___

[issue28167] remove platform.linux_distribution()

2018-05-19 Thread Andrey Bychkov
Change by Andrey Bychkov : -- pull_requests: +6650 ___ Python tracker ___ ___

[issue28167] remove platform.linux_distribution()

2018-05-17 Thread STINNER Victor
STINNER Victor added the comment: Can you please have a look at bpo-33513 which is for Python 2.7: "incorrect detection of information of some distributions python2"? -- ___ Python tracker

[issue28167] remove platform.linux_distribution()

2018-05-16 Thread Petr Viktorin
Petr Viktorin added the comment: platform.linux_distribution is removed from Python 3.8. Thanks for everyone involved! If there are any complaints or other fallout you don't want to deal with, feel free to point people to me :) -- resolution: -> fixed stage:

[issue28167] remove platform.linux_distribution()

2018-05-16 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 8b94b41ab7b12f745dea744e8940631318816935 by Petr Viktorin in branch 'master': bpo-28167: Remove platform.linux_distribution (GH-6871) https://github.com/python/cpython/commit/8b94b41ab7b12f745dea744e8940631318816935

[issue28167] remove platform.linux_distribution()

2018-05-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Petr, I'm fine with this. Maintaining the necessary logic Python is not really possible in the stdlib. It's better to have a PyPI module for this which can be updated much more easily. Thanks. --

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Berker Peksag
Berker Peksag added the comment: Adding Łukasz since he is the release manager of Python 3.8. -- components: +Library (Lib) nosy: +lukasz.langa type: -> enhancement versions: +Python 3.8 ___ Python tracker

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Marc-Andre, I opened a PR to remove platform.linux_distribution() in Python 3.8. How do you feel about this? -- nosy: +lemburg ___ Python tracker

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +6545 ___ Python tracker ___ ___

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset e618e96581a711f2bc4f9bbcff6069bea15f0177 by Petr Viktorin in branch '3.6': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6864) https://github.com/python/cpython/commit/e618e96581a711f2bc4f9bbcff6069bea15f0177

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset f4fdb619ddb5b00178c79c2b90adc45075b5f17d by Petr Viktorin (Miss Islington (bot)) in branch '3.7': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) (GH-6862)

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +6538 ___ Python tracker ___ ___

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6536 ___ Python tracker ___

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 9eb40bc38de83e6ad3fad1931bba1cd36ae88c24 by Petr Viktorin (Matthias Bussonnier) in branch 'master': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)

[issue28167] remove platform.linux_distribution()

2018-05-02 Thread Matthias Klose
Matthias Klose added the comment: there is https://pypi.org/project/distro/ -- ___ Python tracker ___

[issue28167] remove platform.linux_distribution()

2018-05-02 Thread Christian Heimes
Christian Heimes added the comment: We still don't have a suitable replacement for the feature. Five years, Matthias suggested to add a parser for freedesktop's os-release file. -- nosy: +christian.heimes ___ Python tracker

[issue28167] remove platform.linux_distribution()

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's now too late to remove it from Python 3.7. Moreover, if the current warning is *PendingDeprecationWarning*, the warning must first become in Python N, to then remove the feature in Python N+1. I'm ok to just change the warning

[issue28167] remove platform.linux_distribution()

2018-04-30 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +6363 stage: -> patch review ___ Python tracker ___

[issue28167] remove platform.linux_distribution()

2018-04-30 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: In the docs it is marked as "going to be removed in 3.7", and emitting PendingDeprecationWarning. I supposed it should either be updated to change to 3.8 and switch PendingDeprecationWarning to DeprecationWarning, or be

[issue28167] remove platform.linux_distribution()

2017-01-09 Thread STINNER Victor
STINNER Victor added the comment: +1 to remove platform.linux_distribution(). Linux distributions are moving much faster than the Python stdlib, so using the distro module which is hosted on PyPI is much simpler. In 2017, it became very easy to have dependencies, pip became the de factor

[issue28167] remove platform.linux_distribution()

2017-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But platform.dist() can be removed. It was deprecated in 2.6. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28167] remove platform.linux_distribution()

2016-09-15 Thread Berker Peksag
Berker Peksag added the comment: I think the current consensus is to keep old APIs around to make porting from Python 2 easier. That's why I opened issue 26041. See also msg256111 and "Deprecation policy PEP" proposed at

[issue28167] remove platform.linux_distribution()

2016-09-15 Thread STINNER Victor
STINNER Victor added the comment: > platform.linux_distribution() was deprecated in 3.5, and should be removed. Is it replaced with the distro package? FYI I reported the issue to pip and it seems like pip now embeds and uses distro: * https://github.com/pypa/pip/issues/3823 *

[issue28167] remove platform.linux_distribution()

2016-09-15 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue28167] remove platform.linux_distribution()

2016-09-15 Thread Matthias Klose
New submission from Matthias Klose: platform.linux_distribution() was deprecated in 3.5, and should be removed. Can't be kept up to date, see #18872, #19213, #20454, #1180267, plus uncounted issues closed as won't fix. I'm surprised that #26041 removed the removal warnings again after such a