From fc1b5cdd973ceb6b9b284267b15595b792b1012b Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 9 Oct 2012 11:53:33 -0400 Subject: [PATCH] Use the right version number in documentation Get the version number from the setup.py file. Change-Id: I50efc125c8857d9a531d7a00dba53b67baf7496b Signed-off-by: Doug Hellmann --- doc/source/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 5c6e94777..a0a028359 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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.