forked from AdriaanRol/AutoDepGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (43 loc) · 1.56 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
import re
from setuptools import setup, find_packages
def get_version(verbose=1):
""" Extract version information from source code """
try:
with open('autodepgraph/version.py', 'r') as f:
ln = f.readline()
m = re.search('.* ''(.*)''', ln)
version = (m.group(1)).strip('\'')
except Exception as E:
print(E)
version = 'none'
if verbose:
print('get_version: %s' % version)
return version
def readme():
with open('README.md') as f:
return f.read()
def license():
with open('LICENSE') as f:
return f.read()
setup(name='autodepgraph',
version=get_version(),
description='automated tuning based on dependency graph',
long_description=readme(),
long_description_content_type='text/markdown',
author='Adriaan Rol et al',
packages=find_packages(),
ext_package='autodepgraph',
license='MIT',
requires=["qcodes", "pytools",
"numpy", "pytest", "matplotlib"],
install_requires=['networkx>=2.0'],
keywords=['graph', 'calibration framework'],
url='https://github.com/AdriaanRol/AutoDepGraph',
classifiers=['Development Status :: 4 - Beta', 'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
]
)