mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user