On 14 April 2015 at 23:31, Joost Molenaar <[email protected]> wrote:
> On 14 April 2015 at 10:04, Robert Collins <[email protected]> wrote:
>
>> The basic scenario here is developers and CD deployers building
>> versions from VCS of arbitrary commits. So we need to be able to
>> deliver strictly increasing version numbers, automatically, without
>> interfering with actual publishing of pre-release and release versions
>> to PyPI.
>
> I think the advice in PEP440 about using dev tags[1] is a little misguided,
> because dev tags count towards a known version in the future, while DVCS tags
> (at least in Git) count the number of commits since a known version in the
> past. In this respect, 'git describe' most closely resembles the post release
> tags in PEP440, so that's what I've chosen to use in my build scripts, in 
> spite
> of the recommendations in PEP440.
>
>
> [1] https://www.python.org/dev/peps/pep-0440/#dvcs-based-version-labels

Fair enough - what we're doing is using semver to predict the next
version based on the git history - for instance the pseudo header
Sem-Ver: api-break
will cause the next version to be a major version up.

-Rob

-- 
Robert Collins <[email protected]>
Distinguished Technologist
HP Converged Cloud
_______________________________________________
Distutils-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to