forked from qutech/filter_functions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (45 loc) · 2.02 KB
/
setup.py
File metadata and controls
56 lines (45 loc) · 2.02 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
import os
import re
import sys
from setuptools import setup
def read(*args):
return open(os.path.join(os.path.dirname(__file__), *args),
encoding='utf8').read()
def extract_version(version_file):
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
if sys.version_info < (3, 6):
sys.stderr.write('ERROR: You need Python 3.6 or later '
'to install this package.\n')
exit(1)
extras_require = {'plotting': ['matplotlib'],
'bloch_sphere_visualization': ['qutip', 'matplotlib'],
'fancy_progressbar': ['requests'],
'doc': ['jupyter', 'nbsphinx', 'numpydoc', 'sphinx',
'sphinx_rtd_theme'],
'tests': ['pytest>=4.6', 'pytest-cov', 'codecov']}
extras_require['all'] = [dep for deps in extras_require.values()
for dep in deps]
setup(name='filter_functions',
version=extract_version(read('filter_functions', '__init__.py')),
description='Package for efficient calculation of generalized filter functions',
long_description=read('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/qutech/filter_functions',
author='Quantum Technology Group, RWTH Aachen University',
author_email='tobias.hangleiter@rwth-aachen.de',
packages=['filter_functions'],
package_dir={'filter_functions': 'filter_functions'},
install_requires=['numpy', 'scipy', 'opt_einsum', 'sparse', 'tqdm'],
extras_require=extras_require,
test_suite='tests',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Physics',
])