Use pbr for version numbers
Hardcoding version numbers means that they need to be updated for each release. Instead let pbr set the version number everywhere. Change-Id: I5037cf9d0e0adf0eed9cc3d18b36490cc2649e90
This commit is contained in:
parent
5c3de22852
commit
f60ca4c700
@ -55,10 +55,12 @@ bug_tag = 'python-freezerclient'
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
import pbr.version
|
||||
freezer_version = pbr.version.VersionInfo('python-freezerclient')
|
||||
# The short X.Y version.
|
||||
version = '2.0'
|
||||
version = freezer_version.canonical_version_string()
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '2.0.0'
|
||||
release = freezer_version.version_string_with_vcs()
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
Loading…
x
Reference in New Issue
Block a user