summaryrefslogtreecommitdiff
path: root/doc/source/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r--doc/source/conf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 86a8c58..3c577a7 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -53,10 +53,11 @@ copyright = u'2012 OpenStack, LLC.'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-# The short X.Y version.
-version = '.'.join(str(v) for v in swiftclient.version_info[:-1])
+from swiftclient.version import version_info as swiftclient_version
# The full version, including alpha/beta/rc tags.
-release = swiftclient.version
+release = swiftclient_version.version_string()
+# The short X.Y version.
+version = swiftclient_version.canonical_version_string()
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.