summaryrefslogtreecommitdiff
path: root/swiftclient/__init__.py
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2012-07-02 14:58:10 -0700
committerMonty Taylor <mordred@inaugust.com>2012-07-11 12:26:14 -0500
commit7618feaeb12c4128ebe31ed7af3110d15746d0d7 (patch)
treecf700bd11388acc1759991eacfa71891d8acf0cd /swiftclient/__init__.py
parentc2a3fc56fc32b55f06798012fa5e74891acb533a (diff)
downloadpython-swiftclient-7618feaeb12c4128ebe31ed7af3110d15746d0d7.tar.gz
Consume version info from pkg_resources.
Documenation builds specify a version in doc/source/conf.py that is used in appropriate places through out the documentation. Previously this value had not been defined properly and documentation builds failed. Retrieve the version info using pkg_resources and set it properly. Use openstack.common.version to consume the generated version information for documentation. Additional, add a swiftclient.__version__ member which will return the version of swiftclient being used. Change-Id: I14f3abdf00da3f9ea7d0651efe76b08f69ddabae
Diffstat (limited to 'swiftclient/__init__.py')
-rw-r--r--swiftclient/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/swiftclient/__init__.py b/swiftclient/__init__.py
index ba0b41a..cdeb9ef 100644
--- a/swiftclient/__init__.py
+++ b/swiftclient/__init__.py
@@ -3,3 +3,6 @@
OpenStack Swift Python client binding.
"""
from client import *
+from swiftclient import version
+
+__version__ = version.version_info.deferred_version_string()