diff options
author | Jannis Leidel <jannis@leidel.info> | 2012-02-20 00:06:32 +0100 |
---|---|---|
committer | Jannis Leidel <jannis@leidel.info> | 2012-02-20 00:12:35 +0100 |
commit | 1de754851bc06ce01b7a87c21115102df865d412 (patch) | |
tree | aa6951c78ec27233d414b84165f7b338e9e526a4 /docs | |
parent | e59666f1c513838aa2b67f38cf8d093c668a99fa (diff) | |
download | django-appconf-1de754851bc06ce01b7a87c21115102df865d412.tar.gz |
Stopped using versiontools.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py index 64a361b..b919253 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,10 +47,14 @@ copyright = u'2011-2012, Jannis Leidel and individual contributors' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '0.4' -# The full version, including alpha/beta/rc tags. -release = '0.4.1' +try: + from appconf import __version__ + # The short X.Y version. + version = '.'.join(__version__.split('.')[:2]) + # The full version, including alpha/beta/rc tags. + release = __version__ +except ImportError: + version = release = 'dev' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |