mirror of https://github.com/Qiskit/qiskit.git
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:
parent
e51b4fd93d
commit
1e4911e938
|
@ -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!!
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue