Re: [Distutils] PEP386 Pre releases

2012-09-13 Thread SAn
On Thu, Sep 13, 2012 at 5:47 AM, Tarek Ziadé  wrote:
> On 9/13/12 3:21 AM, SAn wrote:
>>>
>>> On Wed Sep 12 19:47:39 CEST 2012, Donald Stufft wrote:
>>>
>>> On Wednesday, September 12, 2012 at 1:43 PM, Erik Bray wrote:

 That said, this doesn't match my workflow at all. After releasing
 "1.0" the next version is going to be "1.1", and any development
 pre-release will be "1.1.devX". "1.1a" might not ever even exist. I
 think others brought up this critique at the time PEP 386 was being
 discussed, but then nothing was ever done about it >_>
>>>
>>> Yea, this concerned me because 1.1.devX < 1.1a1 < 1.1b1 < 1.1c1 < 1.1
>>> is how i've seen it used in the wild. Looks like most everyone i've seen
>>> using it so far has been doing it wrong. Don't think ive seen a single
>>> person do it right.
>>
>> Hi, just yesterday i got bitten by this issue. FYI:
>>
>> # verlib "pep386" (from https://bitbucket.org/tarek/distutilsversion)
>
> you should use the one at
> http://hg.python.org/distutils2/file/0291648eb2b2/distutils2/version.py
>
> for all your tests, and file bugs at bugs.python.org
>
> verlib is an old version and is properly a bit different
>

Thanks Tarek. The code at distutils2 doesn't have that bug :)

Cheers,
SAn
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PEP386 Pre releases

2012-09-13 Thread Tarek Ziadé

On 9/13/12 3:21 AM, SAn wrote:

On Wed Sep 12 19:47:39 CEST 2012, Donald Stufft wrote:

On Wednesday, September 12, 2012 at 1:43 PM, Erik Bray wrote:

That said, this doesn't match my workflow at all. After releasing
"1.0" the next version is going to be "1.1", and any development
pre-release will be "1.1.devX". "1.1a" might not ever even exist. I
think others brought up this critique at the time PEP 386 was being
discussed, but then nothing was ever done about it >_>

Yea, this concerned me because 1.1.devX < 1.1a1 < 1.1b1 < 1.1c1 < 1.1
is how i've seen it used in the wild. Looks like most everyone i've seen
using it so far has been doing it wrong. Don't think ive seen a single
person do it right.

Hi, just yesterday i got bitten by this issue. FYI:

# verlib "pep386" (from https://bitbucket.org/tarek/distutilsversion)
you should use the one at 
http://hg.python.org/distutils2/file/0291648eb2b2/distutils2/version.py


for all your tests, and file bugs at bugs.python.org

verlib is an old version and is properly a bit different

Cheers
Tarek



___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PEP386 Pre releases

2012-09-12 Thread SAn
>On Wed Sep 12 19:47:39 CEST 2012, Donald Stufft wrote:
>
>On Wednesday, September 12, 2012 at 1:43 PM, Erik Bray wrote:
>> That said, this doesn't match my workflow at all. After releasing
>> "1.0" the next version is going to be "1.1", and any development
>> pre-release will be "1.1.devX". "1.1a" might not ever even exist. I
>> think others brought up this critique at the time PEP 386 was being
>> discussed, but then nothing was ever done about it >_>
>
> Yea, this concerned me because 1.1.devX < 1.1a1 < 1.1b1 < 1.1c1 < 1.1
> is how i've seen it used in the wild. Looks like most everyone i've seen
> using it so far has been doing it wrong. Don't think ive seen a single
> person do it right.

Hi, just yesterday i got bitten by this issue. FYI:

# verlib "pep386" (from https://bitbucket.org/tarek/distutilsversion)
>>> from verlib import NormalizedVersion as V
>>> V("0.2a1") <  V("0.2.dev0") < V("0.2")
True

Also there is a bug in that version of verlib because it contradicts
pep386 here:

>>> V("0.2rc1") < V("0.2")
False


# setuptools ¿?
>>> from pkg_resources import parse_version as V
>>> V("0.2.dev0") < V("0.2a1") < V("0.2")
True

# distutils
>>> distutils.version.LooseVersion("0.2.dev0") < 
>>> distutils.version.LooseVersion("0.2")
False
# O_O

cheers,
SAn
PD: i wasn't subcribed to the list, sorry if this mail breaks the "thread".
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PEP386 Pre releases

2012-09-12 Thread Erik Bray
On Wed, Sep 12, 2012 at 1:46 PM, Daniel Holth  wrote:
> Isn't the pep carefully constructed to respect lexicographical sorting?

Yes.  That's why it's ".dev" and not just "dev".  Lexicographically,
"1.0.dev" < "1.0a".

> On Sep 12, 2012 1:44 PM, "Erik Bray"  wrote:
>>
>> On Tue, Sep 11, 2012 at 5:04 PM, Donald Stufft 
>> wrote:
>> > Why does 1.0a1 sort before 1.0.dev1? It appears to me that common
>> > usage in the wild of dev1 releases is that they are used for the
>> > development version before any sort of alpha, beta, rc, or final has
>> > been cut?
>>
>> If I had to guess, the rationale might be that when developing a new
>> version you're developing toward the first "alpha" release, so
>> something like .dev1 would be a development preview of a final release
>> after all a/b/rc pre-releases have been released.
>>
>> That said, this doesn't match my workflow at all.  After releasing
>> "1.0" the next version is going to be "1.1", and any development
>> pre-release will be "1.1.devX".  "1.1a" might not ever even exist.  I
>> think others brought up this critique at the time PEP 386 was being
>> discussed, but then nothing was ever done about it >_>
>>
>> Erik
>> ___
>> Distutils-SIG maillist  -  Distutils-SIG@python.org
>> http://mail.python.org/mailman/listinfo/distutils-sig
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PEP386 Pre releases

2012-09-12 Thread Donald Stufft
On Wednesday, September 12, 2012 at 1:43 PM, Erik Bray wrote:
> That said, this doesn't match my workflow at all. After releasing
> "1.0" the next version is going to be "1.1", and any development
> pre-release will be "1.1.devX". "1.1a" might not ever even exist. I
> think others brought up this critique at the time PEP 386 was being
> discussed, but then nothing was ever done about it >_>
> 
Yea, this concerned me because 1.1.devX < 1.1a1 < 1.1b1 < 1.1c1 < 1.1
is how i've seen it used in the wild. Looks like most everyone i've seen
using it so far has been doing it wrong. Don't think ive seen a single
person do it right.

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PEP386 Pre releases

2012-09-12 Thread Daniel Holth
Isn't the pep carefully constructed to respect lexicographical sorting?
On Sep 12, 2012 1:44 PM, "Erik Bray"  wrote:

> On Tue, Sep 11, 2012 at 5:04 PM, Donald Stufft 
> wrote:
> > Why does 1.0a1 sort before 1.0.dev1? It appears to me that common
> > usage in the wild of dev1 releases is that they are used for the
> > development version before any sort of alpha, beta, rc, or final has
> > been cut?
>
> If I had to guess, the rationale might be that when developing a new
> version you're developing toward the first "alpha" release, so
> something like .dev1 would be a development preview of a final release
> after all a/b/rc pre-releases have been released.
>
> That said, this doesn't match my workflow at all.  After releasing
> "1.0" the next version is going to be "1.1", and any development
> pre-release will be "1.1.devX".  "1.1a" might not ever even exist.  I
> think others brought up this critique at the time PEP 386 was being
> discussed, but then nothing was ever done about it >_>
>
> Erik
> ___
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PEP386 Pre releases

2012-09-12 Thread Erik Bray
On Tue, Sep 11, 2012 at 5:04 PM, Donald Stufft  wrote:
> Why does 1.0a1 sort before 1.0.dev1? It appears to me that common
> usage in the wild of dev1 releases is that they are used for the
> development version before any sort of alpha, beta, rc, or final has
> been cut?

If I had to guess, the rationale might be that when developing a new
version you're developing toward the first "alpha" release, so
something like .dev1 would be a development preview of a final release
after all a/b/rc pre-releases have been released.

That said, this doesn't match my workflow at all.  After releasing
"1.0" the next version is going to be "1.1", and any development
pre-release will be "1.1.devX".  "1.1a" might not ever even exist.  I
think others brought up this critique at the time PEP 386 was being
discussed, but then nothing was ever done about it >_>

Erik
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] PEP386 Pre releases

2012-09-11 Thread Donald Stufft
Why does 1.0a1 sort before 1.0.dev1? It appears to me that common
usage in the wild of dev1 releases is that they are used for the
development version before any sort of alpha, beta, rc, or final has
been cut? 

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig