Adopt semver

Djrill's been practicing semver since 1.0; make it official now.
This commit is contained in:
medmunds
2015-05-11 17:00:32 -07:00
parent 6891b0de91
commit d91e2c2f91
3 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
VERSION = (1, 4, 0, 'dev1') # Remove the 'dev1' component in release branches
__version__ = '.'.join([str(x) for x in VERSION])
VERSION = (1, 4, 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:]])
__minor_version__ = '.'.join([str(x) for x in VERSION[:2]]) # Sphinx's X.Y "version"