Merge "Invoke version_string in watcher/version.py directly"

This commit is contained in:
Jenkins
2017-10-13 04:51:43 +00:00
committed by Gerrit Code Review
4 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ from docutils import nodes
from docutils.parsers import rst
from docutils import statemachine
from watcher.version import version_info
from watcher.version import version_string
class BaseWatcherDirective(rst.Directive):
@@ -169,4 +169,4 @@ class WatcherFunc(BaseWatcherDirective):
def setup(app):
app.add_directive('watcher-term', WatcherTerm)
app.add_directive('watcher-func', WatcherFunc)
return {'version': version_info.version_string()}
return {'version': version_string}

View File

@@ -72,7 +72,7 @@ copyright = u'OpenStack Foundation'
# The full version, including alpha/beta/rc tags.
release = watcher_version.version_info.release_string()
# The short X.Y version.
version = watcher_version.version_info.version_string()
version = watcher_version.version_string
# A list of ignored prefixes for module index sorting.
modindex_common_prefix = ['watcher.']

View File

@@ -64,7 +64,7 @@ copyright = u'2016, Watcher developers'
# The short X.Y version.
version = watcher_version.version_info.release_string()
# The full version, including alpha/beta/rc tags.
release = watcher_version.version_info.version_string()
release = watcher_version.version_string
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@@ -16,4 +16,4 @@
import pbr.version
version_info = pbr.version.VersionInfo('python-watcher')
version_string = version_info.version_string
version_string = version_info.version_string()