[Distutils] [issue128] parse_version post-release tags do not work as expected

Guy Rozendorn setuptools at bugs.python.org
Tue May 10 14:51:20 CEST 2011


New submission from Guy Rozendorn <guy at rzn.co.il>:

according to http://peak.telecommunity.com/DevCenter/setuptools:


>>> from pkg_resources import parse_version
>>> parse_version('2.1-rc2') < parse_version('2.1')
False

but both setuptools 0.6c11 and 0.6c12dev_r88795 show that:
In [7]: parse_version('2.1-rc2') < parse_version('2.1')
Out[7]: True

So pkg_resources acts the opposite of what the documentation says.

----------
keyword: pkg_resources
messages: 623
nosy: guyroz
priority: urgent
status: unread
title: parse_version post-release tags do not work as expected

_______________________________________________
Setuptools tracker <setuptools at bugs.python.org>
<http://bugs.python.org/setuptools/issue128>
_______________________________________________


More information about the Distutils-SIG mailing list