From d9d19cc0fd32d8701d9b3d32ad81385cde652b8d Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 6 Mar 2017 12:35:36 -0500 Subject: [PATCH] Unify versions to a single location 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 --- docs/conf.py | 5 +++-- lftools/__init__.py | 2 ++ setup.py | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 999a3daa..d9775d9a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/lftools/__init__.py b/lftools/__init__.py index ded0c116..cb0a992a 100644 --- a/lftools/__init__.py +++ b/lftools/__init__.py @@ -11,3 +11,5 @@ # Thanh Ha - Initial implementation ############################################################################## """lftools package.""" + +__version__ = '0.0.8' diff --git a/setup.py b/setup.py index 99541182..0e7c601b 100644 --- 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='', -- 2.16.6