Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
41 lines (36 loc) · 1.22 KB
/
Copy pathsetup.py
File metadata and controls
41 lines (36 loc) · 1.22 KB
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
importsetuptools
importos
path_to_here=os.path.dirname(os.path.abspath(__file__))
cqc_init=os.path.join(path_to_here, "cqc", "__init__.py")
withopen(cqc_init, 'r') asf:
forlineinf:
line=line.strip()
ifline.startswith("__version__"):
version=line.split("__version__ = ")[1]
version=version.split(' ')[0]
version=eval(version)
break
else:
raiseRuntimeError("Could not find the version!")
withopen("README.md", 'r') asf:
long_description=f.read()
withopen("requirements.txt", 'r') asf:
install_requires= [line.strip() forlineinf.readlines()]
setuptools.setup(
name="cqc",
version=version,
author="Axel Dahlberg",
author_email="e.a.dahlberg@tudelft.nl",
description="The CQC interface",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/SoftwareQuTech/CQC-Python",
include_package_data=True,
packages=setuptools.find_packages(),
install_requires=install_requires,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
)