[Distutils] Common version-comparison semantics for peace love and harmony
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Nov 29 01:02:45 CET 2009
Laura Creighton wrote:
> Now I want to say 'requires this bugfix'. Right now I think that if
> I say requires 1.0.2 or later, then people with 1.1 will expect that
> they are ok, when they are not. Or am I misunderstanding?
In cases like that, I don't think any scheme that relies on
comparing with a single version number will be sufficient.
You really need to specify a more complex requirement,
such as
1.0.2 <= x < 1.1 or x >= 1.1.2
Even if you have a notion of grouping releases into series,
it can still get complicated. E.g. suppose the bug was only
fixed in the 1.1.3 release of the 1.1 branch -- then you
need to compare with different micro release numbers in
each branch.
--
Greg
More information about the Distutils-SIG
mailing list