From 5dd6bf991d424a9311ee5eee51a798851c38236a Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Mon, 11 Apr 2011 23:33:47 +0200 Subject: [PATCH 1/2] Added PEP386 helper code. --- dbtemplates/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dbtemplates/__init__.py b/dbtemplates/__init__.py index 777f190..2f7c2e2 100644 --- a/dbtemplates/__init__.py +++ b/dbtemplates/__init__.py @@ -1 +1,16 @@ -__version__ = "0.8.0" +VERSION = (1, 0, 0, "f", 0) # following PEP 386 +DEV_N = None + + +def get_version(): + version = "%s.%s" % (VERSION[0], VERSION[1]) + if VERSION[2]: + version = "%s.%s" % (version, VERSION[2]) + if VERSION[3] != "f": + version = "%s%s%s" % (version, VERSION[3], VERSION[4]) + if DEV_N: + version = "%s.dev%s" % (version, DEV_N) + return version + + +__version__ = get_version() From 39f16ef8fcc7be07c6c691c068d44b57c4c142fa Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Mon, 11 Apr 2011 23:34:49 +0200 Subject: [PATCH 2/2] Also bumped Sphinx config version and changelog. --- docs/changelog.txt | 4 ++-- docs/conf.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index a09de98..344a903 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,8 +1,8 @@ Changelog ========= -1.0.0 (04-11-11) ----------------- +1.0 (04-11-11) +-------------- .. warning:: This is the first stable release of django-dbtemplates which comes with a diff --git a/docs/conf.py b/docs/conf.py index 7bac384..101e1cf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,9 +45,9 @@ copyright = u'2010, Jannis Leidel' # built documents. # # The short X.Y version. -version = '0.8.0' +version = '1.0' # The full version, including alpha/beta/rc tags. -release = '0.8.0' +release = '1.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.