-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathsetup.py
53 lines (48 loc) · 1.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import setuptools
import os
path_to_here = os.path.dirname(os.path.abspath(__file__))
simulaqron_init = os.path.join(path_to_here, "simulaqron", "__init__.py")
with open(simulaqron_init, 'r') as f:
for line in f:
line = line.strip()
if line.startswith("__version__"):
version = line.split("__version__ = ")[1]
version = version.split(' ')[0]
version = eval(version)
break
else:
raise RuntimeError("Could not find the version!")
with open("README.md", 'r') as f:
long_description = f.read()
with open("requirements.txt", 'r') as f:
install_requires = [line.strip() for line in f.readlines()]
setuptools.setup(
name="simulaqron",
version=version,
author="Axel Dahlberg",
author_email="[email protected]",
description="A simulator for developing Quantum Internet software",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/SoftwareQuTech/SimulaQron",
include_package_data=True,
packages=setuptools.find_packages(exclude=('tests', 'docs', 'examples')),
package_data={
'simulaqron': ['config/.keep', '.simulaqron_pids/.keep']
},
install_requires=install_requires,
python_requires='>=3.5',
classifiers=[
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: MacOS"
],
entry_points='''
[console_scripts]
simulaqron=simulaqron.simulaqron:cli
'''
)