Moving VERSION.txt to qiskit so it can be part of the wheel package (#598)

* Moving VERSION.txt to qiskit so it can be part of the wheel package
This commit is contained in:
Juan Gomez 2018-06-27 23:34:47 +02:00 committed by GitHub
parent e51b4fd93d
commit 1e4911e938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
file(STRINGS "VERSION.txt" VERSION_NUM)
file(STRINGS "qiskit/VERSION.txt" VERSION_NUM)
project (QISKit VERSION ${VERSION_NUM} LANGUAGES CXX)
# Verbose!!

View File

@ -3,7 +3,7 @@ recursive-include src/qasm-simulator-cpp *
include qiskit/backends/local/qasm_simulator_cpp
include qiskit/backends/local/qasm_simulator_cpp.exe
include qiskit/backends/local/*.dll
include VERSION.txt
include qiskit/VERSION.txt
include CMakeLists.txt
include cmake/*.cmake
include setup.py.in

View File

@ -43,6 +43,6 @@ from . import wrapper
import os
ROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(ROOT_DIR, "VERSION.txt"), "r") as version_file:
__version__ = version_file.readlines()
__version__ = version_file.read().strip()