Ben Finney wrote:
Gerry Reno <gr...@verizon.net> writes:

We have an application, foo-5.0.0, and we want to put out some
pre-release candidates for testing, so we set the version to
"5.0.0_rc1" in setup.py.

That's where your problems start (as you no doubt surmised). If you
want version numbers to compare in a certain order, you should name
them so that the version string will trivially compare in that order.
In many instances we don't get to make that decision when we join projects already in motion. Otherwise, I would not have bothered to post the problem to the list. The fact is that many applications use version string constructs such as I illustrated, "5.0.0_rc1" when they create their release candidates. And yes, the final release, "5.0.0", is not lexically superior. But, as much as I might like that everyone would not do this, I cannot change the whole world which has developed a habit of such things. So I am looking for a solution that works with the world as it is.

Regards,
Gerry

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to