From 501f49c31a8695d22ecb6bf12fde84b5e7e9795a Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 24 Feb 2021 15:20:24 -0500 Subject: [PATCH] Fix and unify version string The version string was incorrectly set in the setup.py and the VERSION.txt file. Both values were incorrect and different from each other. This commit fixes that so there is only a VERSION.txt file and it is correctly set. --- qiskit_experiments/VERSION.txt | 2 +- setup.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/qiskit_experiments/VERSION.txt b/qiskit_experiments/VERSION.txt index a918a2aa18..8acdd82b76 100644 --- a/qiskit_experiments/VERSION.txt +++ b/qiskit_experiments/VERSION.txt @@ -1 +1 @@ -0.6.0 +0.0.1 diff --git a/setup.py b/setup.py index 5cbf551956..3b173d8b45 100755 --- a/setup.py +++ b/setup.py @@ -19,6 +19,14 @@ with open('requirements.txt') as f: REQUIREMENTS = f.read().splitlines() + +version_path = os.path.abspath( + os.path.join( + os.path.join(os.path.dirname(__file__), 'qiskit_experiments'), + 'VERSION.txt')) +with open(version_path, 'r') as fd: + version = fd.read().rstrip() + # Read long description from README. README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md') @@ -27,7 +35,7 @@ setup( name="qiskit-experiments", - version="0.17.0", + version=version, description="Software for developing quantum computing programs", long_description=README, long_description_content_type='text/markdown',