From b685d2a2f10d1602aa31ef114775167a1de2be06 Mon Sep 17 00:00:00 2001 From: Vinay Hegde Date: Tue, 17 Sep 2019 11:51:25 -0700 Subject: [PATCH] Single source the package version --- qmpy/__init__.py | 3 ++- setup.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qmpy/__init__.py b/qmpy/__init__.py index 15d4f96e..115bd5a1 100644 --- a/qmpy/__init__.py +++ b/qmpy/__init__.py @@ -18,7 +18,8 @@ import django.core.exceptions as de -__version__ = 'qmpy version = 1.3' +__version__ = '1.2.0' +VERSION = __version__ INSTALL_PATH = os.path.abspath(os.path.dirname(__file__)) sys.path = [os.path.join(INSTALL_PATH, 'qmpy', 'db')] + sys.path diff --git a/setup.py b/setup.py index e015809f..6caee604 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,11 @@ from setuptools import setup, find_packages +from qmpy import __version__ + + setup( name='qmpy', - version='1.2.0', + version=__version__, author='S. Kirklin', author_email='scott.kirklin@gmail.com', license='LICENSE.txt',