Fix reading version in docs/conf.py

This commit is contained in:
Dana Powers
2015-06-11 22:52:15 -07:00
parent 2451dcc552
commit 4c76da9ad7

View File

@@ -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.