Skip to content

Commit 2853fb0

Browse files
committed
added version in setup
1 parent e0ab693 commit 2853fb0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
"""Setup file for prototype template."""
22

33
import setuptools
4+
import os
45

56
with open("README.md", encoding="utf-8") as f:
67
long_description = f.read()
78

89
with open("requirements.txt") as f:
910
install_requires = f.read().splitlines()
1011

12+
here = os.path.abspath(os.path.dirname(__file__))
13+
version = {}
14+
with open(os.path.join(here, "vqls_prototype", "__version__.py")) as f:
15+
exec(f.read(), version)
16+
1117
setuptools.setup(
1218
name="vqls_prototype",
13-
description="Repository for a quantum prototype",
19+
version=version["__version__"],
20+
description="Prototype for a Quantum Linear Solver",
1421
long_description=long_description,
1522
long_description_content_type="text/markdown",
1623
packages=setuptools.find_packages(),

0 commit comments

Comments
 (0)