[Distutils] Setuptools + specifying project's version
Ruslan Spivak
ruslan.spivak at gmail.com
Mon May 9 21:29:25 CEST 2011
Hi,
In http://peak.telecommunity.com/DevCenter/setuptools#specifying-your-project-s-version
there is a statement that 2.1-rc2 means you've already released 2.1
and an example
"""
....
>>> parse_version('2.1-rc2') < parse_version('2.1')
False
....
"""
Running the example gives quite the opposite result (setuptools-0.6c11):
>>> parse_version('2.1-rc2') < parse_version('2.1')
True
and actually it turns out that a pre-release tag 2.1rc2 is equal to
the post-release tag 2.1-rc2
>>> parse_version('2.1-rc2') == parse_version('2.1rc2')
True
Does anyone have any idea why that's the case or is it a bug?
Cheers,
Ruslan
More information about the Distutils-SIG
mailing list