Add PBR generation of version information
Change-Id: I6391392645d8608a92c885071b26210eed3f5466 Partially-Implements: blueprint add-reno
This commit is contained in:
parent
27a4268216
commit
31634c4df4
11
doc/conf.py
11
doc/conf.py
@ -39,6 +39,17 @@ master_doc = 'index'
|
||||
project = u'kolla'
|
||||
copyright = u'2013, OpenStack Foundation'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
from kolla.version import version_info as kolla_version
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = kolla_version.version_string_with_vcs()
|
||||
# The short X.Y version.
|
||||
version = kolla_version.canonical_version_string()
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
add_function_parentheses = True
|
||||
|
||||
|
@ -15,7 +15,7 @@ import itertools
|
||||
from oslo_config import cfg
|
||||
from oslo_config import types
|
||||
|
||||
from kolla import version
|
||||
from kolla.version import version_info as version
|
||||
|
||||
|
||||
RDO_MIRROR = "http://trunk.rdoproject.org/centos7"
|
||||
@ -125,7 +125,7 @@ _CLI_OPTS = [
|
||||
help=('The number of threads to use while building.'
|
||||
' (Note: setting to one will allow real time'
|
||||
' logging.)')),
|
||||
cfg.StrOpt('tag', default=version.version_info.cached_version_string(),
|
||||
cfg.StrOpt('tag', default=version.cached_version_string(),
|
||||
deprecated_group='kolla-build',
|
||||
help='The Docker tag'),
|
||||
cfg.BoolOpt('template-only', default=False,
|
||||
@ -284,5 +284,5 @@ def parse(conf, args, usage=None, prog=None,
|
||||
project='kolla',
|
||||
usage=usage,
|
||||
prog=prog,
|
||||
version=version.version_info.cached_version_string(),
|
||||
version=version.cached_version_string(),
|
||||
default_config_files=default_config_files)
|
||||
|
Loading…
Reference in New Issue
Block a user