Pull version strings from PBR 73/12573/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 13 Sep 2018 15:23:40 +0000 (11:23 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 13 Sep 2018 21:56:08 +0000 (17:56 -0400)
We've been using PBR for awhile but never updated the docs config to
get it's versioning info from it.

Change-Id: I0884ab9835c0cb763395fc877d04fb0f8ad488b9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
docs/conf.py
docs_conf/__init__.py
setup.py

index 369cfc2..0607d9e 100644 (file)
@@ -15,8 +15,9 @@ import sys
 # Sys.path for RTD to resolve docs_conf package
 sys.path.insert(0, os.path.abspath('..'))
 
-from docs_conf import __version__
+from pbr.version import VersionInfo
+
 from docs_conf.conf import *
 
-version=__version__
-release=__version__
+version=str(VersionInfo('lfdocs-conf'))
+release=str(VersionInfo('lfdocs-conf'))
index 776c9f4..211e5ed 100644 (file)
@@ -15,4 +15,3 @@ Configure sphinx-doc through an YAML file.
 """
 __author__ = 'Linux Foundation Releng'
 __summary__ = 'Linux Foundation DocsConf'
-__version__ = '0.2.5'
index 27a940e..3c9c941 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,6 @@ Setup for Docs Configuration
 """
 from setuptools import setup, find_packages
 
-from docs_conf import __author__
-from docs_conf import __version__
-
 
 with open('requirements.txt') as f:
     install_reqs = f.read().splitlines()