On 1 October 2014 04:40, Wichert Akkerman
On 30 Sep 2014, at 17:35, Barry Warsaw
wrote: On Sep 30, 2014, at 11:06 AM, M.-A. Lemburg wrote:
Installers and PyPI would then regard "3.1.4-1" as belonging to release "3.1.4", but being a more current build as a distribution file carrying "3.1.4" in its file name.
Please don't literally use "3.1.4-1". That will cause all kinds of havoc with the Debian ecosystem. There we use a dash to separate upstream version numbers from Debian version numbers. Thus 3.1.4-1 means the first Debian upload of upstream's 3.1.4. 3.1.4-2 is the second, etc.
Debian does allow 3.1.4-1-1. I forgot the exact rules, but I seem to remember the package version is considered to start after the last dash. Debian will also sort 3.1.4a after 3.1.4 unlike Python rules, so version “massaging” might be necessary in other situations as well.
It's all in policy :)
PyPI 3.1.4a should be 3.1.4~a in Debian.
-Rob
--
Robert Collins