[Distutils] Does PEP 0440 allow omitting the separator for development releases?
Donald Stufft
donald at stufft.io
Mon Nov 23 08:22:32 EST 2015
> On Nov 22, 2015, at 12:49 PM, Christopher Wilson <cwilson at cdwilson.us> wrote:
>
> (I posted this to http://stackoverflow.com/questions/33849399/does-pep-0440-allow-omitting-the-separator-for-development-releases <http://stackoverflow.com/questions/33849399/does-pep-0440-allow-omitting-the-separator-for-development-releases> and was recommended to send an inquiry to this mailer)
>
> PEP 0440 <https://www.python.org/dev/peps/pep-0440/> includes the following two statements which on first glance seem to be contradictory:
>
> Development releases allow a . , - , or a _ separator as well as omitting the separator all together. The normal form of this is with the . separator. This allows versions such as 1.2-dev2 or 1.2dev2 which normalize to 1.2.dev2 .
>
> and
>
> Note that devN and postN MUST always be preceded by a dot, even when used immediately following a numeric version (e.g. 1.0.dev456 , 1.0.post1 ).
>
> Is the 2nd statement true for developers of Python distributions? Or is it stating that the version (once normalized) must always be preceded by a dot?
>
> Thanks,
> Chris
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
Once normalized it must have a dot. The normalization is applied first.
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20151123/f8effbf7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20151123/f8effbf7/attachment.sig>
More information about the Distutils-SIG
mailing list