Issue #3 wontfix

Give a useful output for "./verlib.py 1.0.1 beta 2"

Florent Xicluna
created an issue

This script could help packagers to verify/normalize the version before releasing their package. {{{

!diff

diff -r 17df9a7d96ef verlib.py --- a/verlib.py Fri Feb 05 10:46:20 2010 +0100 +++ b/verlib.py Wed Mar 17 10:21:24 2010 +0100 @@ -325,3 +325,9 @@ pass return None

+if name == 'main': + ver = ' '.join(sys.argv[1:]) + pep386ver = suggest_normalized_version(ver) + if pep386ver is None: + raise IrrationalVersionError(ver) + print "Suggested version:", pep386ver }}}

Comments (2)

  1. Éric Araujo

    This standalone distutils.version repository is not under development anymore, but maybe your request could be adapted for distutils2/packaging, for example as a new feature when people run “pysetup create” to create a setup.cfg file. Can you open a bug on bugs.python.org?

  2. Log in to comment