From: Thanh Ha Date: Mon, 6 Mar 2017 17:35:36 +0000 (-0500) Subject: Unify versions to a single location X-Git-Tag: v0.0.8~10 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F4058%2F1;p=releng%2Flftools.git 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 --- 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='',