summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2015-06-11 22:52:15 -0700
committerDana Powers <dana.powers@rd.io>2015-06-11 22:52:15 -0700
commit4c76da9ad7e19954487e0bed51c367d5fc963be8 (patch)
treee7e4a34d0bcab28d471be562bdb5cf1b4fe34dd8 /docs/conf.py
parent2451dcc55201a311c8fb5e53261cffd3235e6c77 (diff)
downloadkafka-python-4c76da9ad7e19954487e0bed51c367d5fc963be8.tar.gz
Fix reading version in docs/conf.py
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index ea223c2..2979560 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -56,11 +56,10 @@ copyright = u'2015, David Arthur'
# built documents.
#
# The short X.Y version.
-with open('../VERSION') as version_file:
- version = version_file.read()
+exec(open('../kafka/version.py').read())
# The full version, including alpha/beta/rc tags.
-release = version
+release = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.