-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
76 lines (64 loc) · 2.41 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import os
from setuptools import setup, find_packages
def get_version(filename):
"""Extract the package version"""
with open(filename) as in_fh:
for line in in_fh:
if line.startswith('__version__'):
return line.split('=')[1].strip()[1:-1]
raise ValueError("Cannot extract version from %s" % filename)
with open('README.rst') as readme_file:
readme = readme_file.read()
try:
with open('HISTORY.rst') as history_file:
history = history_file.read()
except OSError:
history = ''
requirements = ['sympy<1.2', 'scipy', 'numpy', 'attrs', 'uniseg']
dev_requirements = [
'coverage', 'coveralls', 'pytest', 'pytest-cov', 'pytest-xdist', 'twine', 'pep8',
'flake8', 'wheel', 'sphinx', 'sphinx-autobuild', 'sphinx_rtd_theme',
'sphinx-autodoc-typehints', 'ipython']
dev_requirements.append('better-apidoc>=0.2.0')
version = get_version(os.path.join('.', 'src', 'qnet', '__init__.py'))
setup(
name='QNET',
version=version,
description="Computer algebra package for quantum mechanics and "
"photonic quantum networks",
author="Nikolas Tezak, Michael Goerz",
author_email='[email protected]',
url='https://github.com/mabuchilab/QNET',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Mathematics',
],
install_requires=requirements,
extras_require={
'dev': dev_requirements,
'simulation': ['qutip>=3.0.1'],
'visualization': ['matplotlib', 'pyx>0.14'],
},
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords=[
'qnet', 'computer algebra', 'symbolic algebra', 'science',
'quantum computing', 'quantum mechanics', 'quantum optics',
'quantum networks', 'circuits', 'SLH', 'qutip', 'sympy'],
packages=find_packages(where="src"),
package_dir={"": "src"},
zip_safe=False,
)