mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Adopt semver
Djrill's been practicing semver since 1.0; make it official now.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user