-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
82 lines (70 loc) · 2.02 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
77
78
79
80
81
82
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
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 = ['numpy<2.0', 'scipy', 'matplotlib>=3.3.0', 'qutip>=5.0']
dev_requirements = [
'better-apidoc==0.3.2',
'click',
'coverage',
'flake8',
'gitpython',
'jupyter',
'nbsphinx',
'nbval',
'pep8',
'pytest',
'pytest-cov',
'pytest-xdist',
'sphinx',
'sphinx-autobuild',
'sphinx-autodoc-typehints',
'sphinx_rtd_theme==2.0.0',
'docs-versions-menu',
'twine',
'watermark',
'wheel',
]
version = get_version('./src/weylchamber/__init__.py')
setup(
author="Michael Goerz",
author_email='mail@michaelgoerz.net',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
description=(
"Python package for analyzing two-qubit gates in the Weyl chamber"
),
install_requires=requirements,
extras_require={'dev': dev_requirements},
license="BSD license",
long_description=readme + '\n\n' + history,
long_description_content_type='text/x-rst',
include_package_data=True,
keywords='weylchamber',
name='weylchamber',
packages=find_packages(where="src"),
package_dir={"": "src"},
url='https://github.com/qucontrol/weylchamber',
version=version,
zip_safe=False,
)