forked from LiberTEM/LiberTEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
198 lines (181 loc) · 4.76 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[build-system]
requires = [
"hatchling",
"hatch-fancy-pypi-readme",
]
build-backend = "hatchling.build"
[project]
name = "libertem"
dynamic = ["version", "readme"]
description = "Open pixelated STEM framework"
license-files = { paths = ["LICENSE", "src/libertem/common/LICENSE"] }
requires-python = ">=3.9.3"
authors = [
{ name = "the LiberTEM team", email = "[email protected]" },
]
keywords = [
"electron",
"microscopy",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: JavaScript",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"autopep8",
"click",
"cloudpickle",
"dask!=2023.6.1",
"defusedxml",
"distributed>=2.19.0",
"empyre>=0.3.0",
"h5py",
"ipympl",
"jsonschema",
"jupyter_ui_poll",
"matplotlib",
"nbconvert",
"nbformat",
"ncempy>=1.10",
# Minimum constraints of numba for all Python versions we support
# See https://numba.readthedocs.io/en/stable/release-notes-overview.html
"numba>=0.53;python_version < '3.10'",
"numba>=0.55;python_version < '3.11'",
"numba>=0.57;python_version < '3.12'",
"numba>=0.59;python_version < '3.13'",
# for any future Python release, constrain numba to a recent version,
# otherwise, version resolution might try to install an ancient version
# that isn't constrained properly:
"numba>=0.61;python_version >= '3.13'",
"numexpr!=2.8.6",
"numpy",
"opentelemetry-api",
"pillow",
"psutil",
"pywin32!=226;platform_system==\"Windows\"",
"scikit-image",
"scikit-learn",
"scipy>=1.4.1",
"sparse",
"sparseconverter>=0.4.0",
"tblib",
"threadpoolctl>=3.0",
"tomli",
"tornado>=5",
"tqdm",
"typing-extensions",
]
[project.optional-dependencies]
bqplot = [
"bqplot",
"bqplot-image-gl",
"ipython",
]
cupy = [
"cupy",
]
hdbscan = [
"hdbscan;( python_version!='3.11' or platform_system!='Windows')",
"hdbscan<=0.8.30;( python_version=='3.11' and platform_system=='Windows')",
]
hdf5plugin = [
"hdf5plugin",
]
torch = [
"torch<1.12",
]
tracing = [
"opentelemetry-distro",
"opentelemetry-exporter-otlp",
]
[project.scripts]
libertem-server = "libertem.web.cli:main"
libertem-worker = "libertem.executor.cli:main"
[project.urls]
Repository = "https://github.com/LiberTEM/LiberTEM"
Homepage = "https://libertem.github.io/LiberTEM/"
[tool.hatch.version]
path = "src/libertem/__version__.py"
[tool.hatch.build.targets.wheel]
artifacts = [
"/src/libertem/_baked_revision.py",
]
[tool.hatch.build.targets.sdist]
artifacts = [
"/src/libertem/_baked_revision.py",
]
include = [
"/src",
"/tests",
"/client/src",
"/client/public",
"/client/types",
"/client/README.md",
"/client/*.*js*",
"/LICENSE",
"/README.rst",
"/pytest.ini",
"/conftest.py",
"/test_requirements.txt",
"/override_requirements.txt",
"/tox.ini",
"/.flake8",
]
exclude = [
"*.pyc",
"*.nbi",
"*.nbc",
"__pycache__",
".mypy_cache",
]
[tool.hatch.build.hooks.custom]
# this enables hatch_build.py
[tool.hatch.metadata.hooks.fancy-pypi-readme]
"content-type" = "text/x-rst"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.rst"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = ":(cite|doc):`[^`]+` ?"
replacement = ""
[tool.coverage.run]
branch = true
include = [
"src/"
]
[tool.coverage.report]
# 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__",
"if self.debug",
# Don't complain about typing branches:
"if TYPE_CHECKING",
"if typing.TYPE_CHECKING",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if False:",
"if __name__ == .__main__.:",
]