Skip to content

Post release spelling not recognized #35

Description

@toabctl

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
>>> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions