-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
155 lines (135 loc) · 4.88 KB
/
pyproject.toml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[tool.poetry]
name = "mrmustard"
version = "0.7.3"
description = "Differentiable quantum Gaussian circuits"
authors = ["Xanadu <[email protected]>"]
license = "Apache License 2.0"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Physics",
]
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
grpcio = "1.60.0"
numpy = "^1.23.5"
scipy = "^1.8.0"
numba = "^0.59"
thewalrus = ">=0.19.0,<1.0"
rich = "^13.9.0"
matplotlib = "^3.5.0"
ray = { version = "^2.5.0", extras = ["tune"], optional = true }
scikit-optimize = { version = "^0.9.0", optional = true }
networkx = "^3.1"
juliacall = "^0.9.20"
ipython = ">=8.18.1"
plotly = "^5.20.0"
nbformat = "^5.10"
ipywidgets = "^8.1.3"
###################### The Tensorflow Section ######################
# Dedicated for making sure that poetry can install tensorflow on all platforms.
# This hopefully is a temporary workaround, pending TF starting doing a good job with their pypi release metadata.
# Issue between poetry and tensorflow metadata since >=2.11
# related to https://github.com/python-poetry/poetry/issues/8271
# Inspired from https://github.com/tensorflow/tensorflow/blob/adb39b04e9cb116df4659a7e2de9eea27e62f25c/tensorflow/tools/pip_package/setup.py#L148-L162
tensorflow = {version = "^2.15.0" }
tensorflow-macos = { version = "2.15.0", platform = "darwin", markers = "platform_machine=='arm64'" }
tensorflow-intel = { version = "^2.15.0", platform = "win32" }
# Disabled to prevent taking over GPU:
# tensorflow-cpu = [
# { version = "^2.15.0", platform = "linux", markers = "platform_machine!='arm64' and platform_machine!='aarch64'" },
# { version = "^2.15.0", platform = "darwin", markers = "platform_machine!='arm64' and platform_machine!='aarch64'" },]
tensorflow-cpu-aws = { version = "^2.15.0", platform = "linux", markers = "platform_machine=='arm64' or platform_machine=='aarch64'" }
# https://github.com/tensorflow/tensorflow/blob/adb39b04e9cb116df4659a7e2de9eea27e62f25c/tensorflow/tools/pip_package/setup.py#L107-L108
# https://github.com/python-poetry/poetry/issues/8271#issuecomment-1697740447
tensorflow-io-gcs-filesystem = [
{ version = ">= 0.23.1", markers = "platform_machine!='arm64' or platform_system!='Darwin'" },
{ version = "< 0.32.0", markers = "platform_system == 'Windows'" }
]
tensorflow-probability = { version = ">=0.22.0,<1.0", extras = ["tf"] }
semantic-version = "^2.10.0"
[tool.poetry.extras]
ray = ["ray", "scikit-optimize"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "3.7.1"
pytest = "8.0"
pytest-cov ="3.0.0"
hypothesis = "6.31.6"
pylint = "^3.0"
black = ">=22.1.0"
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
sphinx = "^7.0.1"
docutils = "^0.20.1"
m2r2 = "^0.3.3.post2"
sphinx-autodoc-typehints = "^1.23.3"
sphinx-copybutton = "^0.5.2"
sphinx-automodapi = "^0.15.0"
sphinxcontrib-bibtex = "^2.5.0"
mistune = "0.8.4"
xanadu-sphinx-theme = "0.1.0"
[tool.black]
line-length = 100
[tool.coverage.run]
source = ["mrmustard"]
[tool.coverage.report]
omit = ["mrmustard/lab/*", "mrmustard/training/*"]
# Regexes for lines to exclude from consideration
exclude_lines =[
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"def __eq__",
"if self\\.debug",
# print statements
"def __str__",
"def __format__",
"def _print_list",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"raise NotApplicableError",
"raise Exception",
"raise ValueError",
"raise ZeroDivisionError",
"raise TypeError",
"raise RuntimeError",
"raise IndexError",
"raise FileNotFoundError",
"raise NotADirectoryError",
"raise MergeFailure",
"return __version__",
"if len(lst) != self._num_modes:",
"elif max(lst) >= self._trunc:",
"except NotImplementedError as err",
# Don't complain if non-runnable code isn't run:
"if 0:",
"pass",
"if __name__ == .__main__.:",
]
ignore_errors = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.pytest.ini_options]
filterwarnings = "ignore::DeprecationWarning"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"