forked from XanaduAI/MrMustard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
98 lines (89 loc) · 3.58 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
[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"
rich = "^10.15.1"
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"
mako = "^1.3.0"
plotly = "^5.20.0"
nbformat = "^5.10"
###################### 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]
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"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"