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() 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.