diff --git a/doc/source/conf.py b/doc/source/conf.py index 9324e2f..84c07bc 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -23,6 +23,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import pbr.version import subprocess import warnings @@ -68,9 +69,12 @@ copyright = '2015, OpenStack' # built documents. # # The short X.Y version. -version = '0.1.0' + +senlin_version = pbr.version.VersionInfo('python-senlinclient') # The full version, including alpha/beta/rc tags. -release = '0.1.0' +release = senlin_version.version_string_with_vcs() +# The short X.Y version. +version = senlin_version.canonical_version_string() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.