[Distutils] PEP 386 and git versioning scheme

Chris Withers chris at simplistix.co.uk
Fri Feb 15 19:25:20 CET 2013


On 28/01/2013 18:21, Manlio Perillo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi.
>
> In a project I'm working on, I use git, and I'm trying to follow the
> versioning scheme used by the git project (since it is very pratical).
>
> To summarize, git version is generated from the output of
> "git describe" command, replacing the '-' character with '.'.
>
> git describe returns a string formed by using the most recent tag
> (e.g. 1.8.1, 1.8.1.rc1), and adding the number of revisions after that
> tag, and the short ID of the current revision
> (e.g v1.8.1-301-ga0df26f).
>
> So, a version may be something like: v1.8.1.301.ga0df26f
>
> It seems that this versioning scheme is not compatible with PEP 386 "new
> versioning scheme". Is this true?

I hope not, can someone comment on this?

We need to deal with hashes-in-versions as both Git and Mercurial are 
likely to have this...

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk


More information about the Distutils-SIG mailing list