Read version info from package

Read version info from package instead of hard-coded.

Change-Id: Ifdd199a1499624967d23e8a7ebd4fc3dd67abda0
This commit is contained in:
Jeremy Liu 2017-02-23 21:14:35 +08:00
parent d89e55a9e4
commit 660b1b81ee

View File

@ -57,10 +57,11 @@ copyright = u'2016, OpenStack contributors'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
from barbican.version import version_info
# The short X.Y version.
version = '2.1.0'
version = version_info.version_string()
# The full version, including alpha/beta/rc tags.
release = '2.1.0'
release = version_info.release_string()
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.