On Fri, 18 Jan 2019 at 03:17, Michael Goerz <go...@stanford.edu> wrote: > > PEP 440 contains a section that claims: > > > Summary of differences from pkg_resources.parse_version > > [https://www.python.org/dev/peps/pep-0440/#id63] > > > > * Local versions sort differently, this PEP requires that they sort as > > greater than the same version without a local version, whereas > > pkg_resources.parse_version considers it a pre-release marker. > > I haven't been able to find any mention of this in the setuptools changelogs, > but this no longer seems to be the case: > > >>> from pkg_resources import parse_version > >>> parse_version('1.0.0+dev') > parse_version('1.0.0') > True > > Thus, it might be good to change the comment in the PEP accordingly (ideally, > someone is able to figure out in which version of setuptools parse_version > started to be compatible with PEP440).
Thanks for the heads up - I've filed https://github.com/python/peps/issues/881 about it, and pinged Jason to see if he knows when that behaviour may have changed. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/TS74NQ2A4QODKSHU2U7CHSSZGFXGB5VA/