Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post release spelling not recognized #35

Closed
toabctl opened this issue Jun 24, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@toabctl
Copy link

commented Jun 24, 2015

Hi,

According to https://www.python.org/dev/peps/pep-0440/#post-release-spelling , versions like '1.0-r4' should be normalized to '1.0.post4'. But running a simple test, this does not work:

$ python
Python 2.7.10 (default, May 24 2015, 14:46:10) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import packaging
>>> packaging.__version__
'15.1'
>>> from packaging.version import parse
>>> v1 = parse('1.0.post4')
>>> v2 = parse('1.0.post4')
>>> v1 == v2
True
>>> v2 = parse('1.0.r4')
>>> v1 == v2
False
>>> 

@toabctl

This comment has been minimized.

Copy link
Author

commented Jul 19, 2015

@dstufft comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.