[Bug 1589607] Re: Backwards incompatible breakage in marker parsing
Geoffrey Sneddon
geoffers at gmail.com
Mon Jun 6 17:10:50 UTC 2016
https://github.com/pypa/packaging/commit/3f22589b6888c5a600ae5cf71730c4b0e1c44913
is probably the minimal change needed to fix this. Upstream then had
https://github.com/pypa/packaging/commit/775fb67833d00179286dce8ce673b845d5cecdc0
which technically does change behaviour in another edge-case.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-setuptools in Ubuntu.
https://bugs.launchpad.net/bugs/1589607
Title:
Backwards incompatible breakage in marker parsing
Status in python-setuptools package in Ubuntu:
New
Bug description:
See <https://gsnedders.github.io/python-marker-test/results.html> for
a summary of what versions of setuptools support what environment
markers.
Wily shipped with 18.4 and that Xenial's 20.7.0 doesn't support
"python_implementation" unlike 18.4, although later releases of
setuptools fixed this backwards incompatible change. It would be nice,
for the sake of compatibility, if the Ubuntu package could patch this
backwards incompatible change.
packaging fixed this upstream with the ALIASES in
<https://github.com/pypa/packaging/blob/16.7/packaging/markers.py#L64>,
for reference.
An easy test for this is
pkg_resources.evaluate_marker("python_implementation == 'CPython'") —
this should not throw an exception (and should return True on CPython,
but False otherwise).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-setuptools/+bug/1589607/+subscriptions
More information about the foundations-bugs
mailing list