Use the right version number in documentation
Get the version number from the setup.py file. Change-Id: I50efc125c8857d9a531d7a00dba53b67baf7496b Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
parent
57f353541f
commit
fc1b5cdd97
@ -13,6 +13,7 @@
|
||||
# serve to show the default.
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
@ -55,9 +56,10 @@ copyright = u'2012, OpenStack, LLC'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.0'
|
||||
#version = '0.0'
|
||||
version = os.popen('cd ../..; python setup.py --version', 'r').read().strip()
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.0'
|
||||
release = version
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
Loading…
Reference in New Issue
Block a user