-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
76 lines (66 loc) · 2.39 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
import os
from setuptools import setup
# Load package info, without importing the package
basedir = os.path.dirname(os.path.abspath(__file__))
package_info_path = os.path.join(basedir, "dwave", "inspector", "package_info.py")
package_info = {}
with open(package_info_path, encoding='utf-8') as f:
exec(f.read(), package_info)
# Package requirements, minimal pinning
install_requires = [
'dimod>=0.10.0',
'dwave-system>=1.3.0',
'dwave-cloud-client>=0.12.0,<0.14.0',
'Flask>=2.2,<4',
'numpy',
'orjson>=3.10.0',
# dwave-inspectorapp==0.3.3
]
# Package extras requirements
extras_require = {
'test': ['coverage', 'vcrpy'],
# importlib.metadata backport needed for selectable entry point prior to py310
':python_version < "3.10"': ['importlib-metadata>=4.8'],
}
classifiers = [
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
packages = ['dwave', 'dwave.inspector']
python_requires = '>=3.9'
setup(
name=package_info['__package_name__'],
version=package_info['__version__'],
author=package_info['__author__'],
author_email=package_info['__author_email__'],
description=package_info['__description__'],
long_description=open('README.rst', encoding='utf-8').read(),
url=package_info['__url__'],
license=package_info['__license__'],
packages=packages,
entry_points={
package_info['entry_point_group']['viewers']: [
'jupyter_inline = dwave.inspector.viewers:jupyter_inline',
'browser_tab = dwave.inspector.viewers:webbrowser_tab',
'browser_window = dwave.inspector.viewers:webbrowser_window',
],
package_info['entry_point_group']['proxies']: [
'jupyter_server_proxy = dwave.inspector.proxies:jupyter_server_proxy',
],
package_info['entry_point_group']['contrib']: [
'dwave-inspector = dwave.inspector.package_info:contrib'
]
},
python_requires=python_requires,
install_requires=install_requires,
extras_require=extras_require,
classifiers=classifiers,
zip_safe=False,
)