Let documentation get version from nova/version.py as well.

This commit is contained in:
Todd Willey
2011-01-06 15:29:38 -05:00
parent f3ea4d876f
commit 8cdfdd14a0
+5 -3
View File
@@ -60,10 +60,12 @@ copyright = u'2010, United States Government as represented by the Administrator
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '2011.1'
import re
from nova import version as nova_version
# The full version, including alpha/beta/rc tags.
release = '2011.1-prerelease'
release = nova_version.string()
# The short X.Y version.
version = re.sub(r'-dev$', '', nova_version.string())
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.