[Distutils] PEP 386 status - last round here ?

Piotr Ozarowski ozarow at gmail.com
Fri Nov 27 11:39:58 CET 2009


[Tarek Ziadé, 2009-11-26]
> On Thu, Nov 26, 2009 at 8:55 PM, Floris Bruynooghe
> <floris.bruynooghe at gmail.com> wrote:
> [..]
> >> since the .dev versions are really only snapshots leading up to
> >> some release, i.e. 1.0.dev456 is a snapshot leading up to the
> >> first pre-release of the 1.0 :-)
> >
> > But in this case if I want to make a pre-release of 1.0 but after the
> > last rc then I can't, I can only make a post-release of the last rc.
> > That's almost more un-intuitive that forcing your first pre-release to
> > be '1.0a0.dev456' instead of just '1.0.dev456'.
> 
> It seems to me that the number of development versions of rc releases
> is very low compared to the number of development snapshots done for
> 1.0, before the pre-release cycle starts.
> 
> (I don't think I have ever needed a dev snapshot of a rc version)
> 
> I am +1 for keeping the intuitive writing for the pre-release cycle.
> 
> e.g.
> 
>  1.0.dev456
>  < 1.0a1.dev456
>  < 1.0a1
>  < 1.0rc1.dev456
>  < 1.0rc1
>  < 1.0rc1.post123
>  < 1.0

why not simply use "-" and "+" where "-" is before zero-length string
and "+" is after any other string... and then sort the rest
alphabetically? f.e.

  1.0-a1-dev456
< 1.0-a1
< 1.0-a1+dev456
< 1.0-dev456
< 1.0-rc1-dev456
< 1.0-rc1
< 1.0-rc1+post123
< 1.0
< 1.0+post123

don't worry about Debian, we'll simply replace "-" with "~" (we use "~"
and "+" right now[0]). I'm not sure about rpm, but I bet it has
something similar and it will be much easier for us to simply handle two
characters instead of recognizing that dev1 < a1 < b1 < c1 == rc1 ...

[0] dpkg --compare-versions '1.0~a1~dev456' '<=' '1.0~a1+dev456' && echo true || echo false
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


More information about the Distutils-SIG mailing list