Switch back to python-approved versioning

2.0.0-dev0 --> 2.0.0.dev0 (or just 2.0.dev0)

We still practice semver in the major.minor.patch
versions; we just don't use semver's "-" for
pre-release versions. (Because, PEP 0440.)

https://www.python.org/dev/peps/pep-0440/
This commit is contained in:
medmunds
2015-12-02 19:50:28 -08:00
parent 68929e015e
commit 48028ecf64

View File

@@ -1,5 +1,3 @@
VERSION = (2, 0, 0, 'dev') # Remove the 'dev' component in release branches
__version__ = '.'.join([str(x) for x in VERSION[:3]]) # major.minor.patch
if len(VERSION) > 3: # x.y.z-pre.release (note the hyphen)
__version__ += '-' + '.'.join([str(x) for x in VERSION[3:]])
VERSION = (2, 0, 'dev0') # Remove the 'dev' component in release branches
__version__ = '.'.join([str(x) for x in VERSION]) # major.minor.patch or major.minor.devN
__minor_version__ = '.'.join([str(x) for x in VERSION[:2]]) # Sphinx's X.Y "version"