-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (135 loc) · 3.8 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (135 loc) · 3.8 KB
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
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tensor-network-editor"
dynamic = ["version"]
description = "Production-ready local visual editor for tensor networks: versioned JSON diagrams and Python code for einsum and optional backends."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE", "THIRD_PARTY_LICENSES"]
authors = [
{ name = "Alejandro Mata Ali" }
]
keywords = [
"benchmark",
"code-generation",
"contraction",
"diagram",
"einsum",
"editor",
"json",
"local",
"mera",
"mps",
"mpo",
"opt-einsum",
"peps",
"physics",
"quimb",
"scientific-computing",
"tensor-contraction",
"tensor-network",
"tensor-networks",
"tensorkrowch",
"tensornetwork",
"visualization",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: JavaScript",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: User Interfaces",
"Typing :: Typed",
]
dependencies = ["matplotlib>=3.8", "opt_einsum>=3.3"]
[project.urls]
Homepage = "https://github.com/DOKOS-TAYOS/Tensor-Network-Editor"
Repository = "https://github.com/DOKOS-TAYOS/Tensor-Network-Editor"
Issues = "https://github.com/DOKOS-TAYOS/Tensor-Network-Editor/issues"
[project.optional-dependencies]
numpy = ["numpy>=1.24"]
torch = ["torch>=2.0"]
dev = [
"build>=1.2",
"mypy>=1.10",
"pip-audit>=2.7",
"pyright>=1.1",
"pytest>=8.2",
"ruff>=0.6",
"twine>=5.1",
]
tensornetwork = ["tensornetwork>=0.4"]
quimb = ["quimb>=1.7"]
tensorkrowch = ["tensorkrowch>=1.1"]
desktop = ["pywebview>=6.2.1,<7"]
[project.scripts]
tensor-network-editor = "tensor_network_editor.cli:main"
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "tensor_network_editor._version.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
tensor_network_editor = [
"py.typed",
"app/static/*.html",
"app/static/*.css",
"app/static/*.ico",
"app/static/js/*.js",
"app/static/js/actions/*.js",
"app/static/js/core/*.js",
"app/static/js/graph/*.js",
"app/static/js/interactions/*.js",
"app/static/js/planner/*.js",
"app/static/js/properties/*.js",
"app/static/js/services/*.js",
"app/static/js/session/*.js",
"app/static/js/shell/*.js",
"app/static/js/spec/*.js",
"app/static/js/state/*.js",
"app/static/js/utils/*.js",
"app/static/js/views/*.js",
"app/static/vendor/*.js",
]
[tool.pytest.ini_options]
addopts = "-ra -p no:cacheprovider"
testpaths = ["tests"]
markers = [
"unit: fast tests for isolated Python behavior",
"integration: tests that cross process, HTTP, packaging, or CLI boundaries",
"optional_backend: tests that require balanced optional math backends",
"heavy_backend: tests that require heavy optional backends such as Torch or TensorKrowch",
"browser: browser-based smoke tests, enabled by TNE_RUN_BROWSER_SMOKE=1",
]
[tool.ruff]
src = ["src", "tests", "examples"]
target-version = "py311"
[tool.ruff.lint]
select = ["ARG", "B", "E4", "E7", "E9", "F", "I", "RUF100", "UP"]
[tool.mypy]
files = ["src"]
python_version = "3.11"
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["src", "tests"]
extraPaths = ["src"]
typeCheckingMode = "standard"