[Yum-devel] [PATCH] Get the version number for the documentation from yum.__version__.

Nick Jacek njacek at redhat.com
Fri Jul 29 13:43:54 UTC 2011


---
 docs/sphinxdocs/conf.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/sphinxdocs/conf.py b/docs/sphinxdocs/conf.py
index b9f2e1d..867d323 100644
--- a/docs/sphinxdocs/conf.py
+++ b/docs/sphinxdocs/conf.py
@@ -30,7 +30,7 @@ sys.path.insert(0, os.path.normpath(os.path.join(os.getcwd(), "../..")))
 sys.path.insert(1, os.getcwd())
 import rstgenerator
 rstgenerator.generateAll(sys.path[0], os.getcwd())
-
+import yum
 
 # If your documentation needs a minimal Sphinx version, state it here.
 #needs_sphinx = '1.0'
@@ -60,9 +60,9 @@ copyright = None
 # built documents.
 #
 # The short X.Y version.
-version = '3.4'
+# version = 
 # The full version, including alpha/beta/rc tags.
-release = '3.4.2'
+release = yum.__version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
-- 
1.7.5.4



More information about the Yum-devel mailing list