forked from DiCarloLab-Delft/PycQED_py3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (54 loc) · 1.9 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
54
55
56
57
58
59
60
61
62
from setuptools import setup, find_packages
from distutils.version import StrictVersion
from importlib import import_module
import re
def get_version(verbose=1):
""" Extract version information from source code """
try:
with open('pycqed/version.py', 'r') as f:
ln = f.readline()
# print(ln)
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='PycQED',
version=get_version(),
use_2to3=False,
author='Adriaan Rol',
author_email='adriaan.rol@gmail.com',
maintainer='Adriaan Rol',
maintainer_email='adriaan.rol@gmail.com',
description='Python based Circuit QED data acquisition framework '
'developed by members of the DiCarlo-lab at '
'QuTech, Delft University of Technology',
long_description=readme(),
url='https://github.com/DiCarloLab-Delft/PycQED_py3',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering'
],
license=license(),
# if we want to install without tests:
# packages=find_packages(exclude=["*.tests", "tests"]),
packages=find_packages(),
install_requires=list(open('requirements.txt')
.read()
.strip()
.split('\n')),
tests_require=['pytest'],
zip_safe=False)