Unify versions to a single location 58/4058/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 6 Mar 2017 17:35:36 +0000 (12:35 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 6 Mar 2017 17:35:38 +0000 (12:35 -0500)
setup.py and conf.py have their own version definition. This patch
makes them both point to the same truth for versioning.

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

index 999a3da..d9775d9 100644 (file)
@@ -20,6 +20,7 @@
 import os
 import sys
 import sphinx_bootstrap_theme
+from lftools import __version__
 sys.path.insert(0, os.path.abspath('..'))
 
 # -- General configuration ------------------------------------------------
@@ -66,9 +67,9 @@ author = 'Thanh Ha'
 # built documents.
 #
 # The short X.Y version.
-version = '0.0.1'
+version = __version__
 # The full version, including alpha/beta/rc tags.
-release = '0.0.1'
+release = __version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index ded0c11..cb0a992 100644 (file)
@@ -11,3 +11,5 @@
 #   Thanh Ha - Initial implementation
 ##############################################################################
 """lftools package."""
+
+__version__ = '0.0.8'
index 9954118..0e7c601 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,14 @@
 from setuptools import find_packages
 from setuptools import setup
 
+from lftools import __version__
+
 with open('requirements.txt') as f:
     install_reqs = f.read().splitlines()
 
 setup(
     name='lftools',
-    version='0.0.7',
+    version=__version__,
     author='Thanh Ha',
     author_email='thanh.ha@linuxfoundation.org',
     url='',