forked from scikit-image/scikit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
210 lines (196 loc) · 4.64 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
199
200
201
202
203
204
205
206
207
208
209
210
[project]
name = 'scikit-image'
description = 'Image processing in Python'
requires-python = '>=3.9'
readme = 'README.md'
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: C',
'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.12',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
]
dynamic = ['version']
dependencies = [
'numpy>=1.23',
'scipy>=1.9',
'networkx>=2.8',
'pillow>=9.1',
'imageio>=2.33',
'tifffile>=2022.8.12',
'packaging>=21',
'lazy-loader>=0.4',
]
[[project.maintainers]]
name = 'scikit-image developers'
email = '[email protected]'
[project.license]
file = 'LICENSE.txt'
[project.optional-dependencies]
build = [
# Also update [build-system] -> requires
'meson-python>=0.15',
'wheel',
'setuptools>=67',
'packaging>=21',
'ninja',
'Cython>=3.0.4',
'pythran',
'numpy>=2.0.0',
# Developer UI
'spin==0.8',
'build',
]
data = ['pooch>=1.6.0']
developer = [
'pre-commit',
'ipython',
"tomli; python_version < '3.11'",
]
docs = [
'sphinx>=7.3',
'sphinx-gallery>=0.14',
'numpydoc>=1.7',
'sphinx-copybutton',
'pytest-runner',
'matplotlib>=3.6',
'dask[array]>=2022.9.2',
'pandas>=1.5',
'seaborn>=0.11',
'pooch>=1.6',
'tifffile>=2022.8.12',
'myst-parser',
'ipywidgets',
'ipykernel', # needed until https://github.com/jupyter-widgets/ipywidgets/issues/3731 is resolved
'plotly>=5.10',
'kaleido',
'scikit-learn>=1.1',
'sphinx_design>=0.5',
'pydata-sphinx-theme>=0.15.2',
'PyWavelets>=1.1.1',
'pytest-doctestplus',
]
optional = [
'SimpleITK',
'astropy>=5.0',
'cloudpickle>=0.2.1', # necessary to provide the 'processes' scheduler for dask
'dask[array]>=2021.1.0',
'matplotlib>=3.6',
'pooch>=1.6.0',
'pyamg',
'PyWavelets>=1.1.1',
'scikit-learn>=1.1',
]
test = [
'asv',
'numpydoc>=1.7',
'pooch>=1.6.0',
'pytest>=7.0',
'pytest-cov>=2.11.0',
'pytest-localserver',
'pytest-faulthandler',
'pytest-doctestplus',
]
[project.urls]
homepage = 'https://scikit-image.org'
documentation = 'https://scikit-image.org/docs/stable'
source = 'https://github.com/scikit-image/scikit-image'
download = 'https://pypi.org/project/scikit-image/#files'
tracker = 'https://github.com/scikit-image/scikit-image/issues'
[build-system]
build-backend = 'mesonpy'
requires = [
'meson-python>=0.15',
'wheel',
'setuptools>=67',
'packaging>=21',
'Cython>=3.0.4',
'pythran',
'lazy_loader>=0.3',
'numpy>=2.0.0rc1',
]
[tool.spin]
package = 'skimage'
[tool.spin.commands]
Build = [
'spin.cmds.meson.build',
'spin.cmds.meson.test',
'spin.cmds.build.sdist',
]
Environments = [
'spin.cmds.meson.run',
'.spin/cmds.py:ipython',
'spin.cmds.meson.python',
]
Documentation = ['.spin/cmds.py:docs']
Metrics = [
'.spin/cmds.py:asv'
]
[tool.black]
target-version = ['py310', 'py311', 'py312']
skip-string-normalization = 1
[tool.ruff.lint]
select = [
'F',
'E',
'W',
'UP',
'NPY201',
]
ignore = [
'E501',
'E741',
'E712',
'UP038', # non-pep604-isinstance -- https://github.com/astral-sh/ruff/issues/7871
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = [
'E402',
'F401',
'F403',
'F405',
]
"**/__init__.pyi" = [
'E402',
'F401',
'F403',
'F405',
]
"skimage/_shared/testing.py" = ['F401']
"doc/examples/**/*.py" = ['E402']
[tool.ruff.lint.pydocstyle]
convention = 'numpy'
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --strict-config --strict-markers"
log_cli_level = "INFO"
xfail_strict = true
#testpaths = ["skimage", "../../../../../benchmarks"]
python_files = ["benchmark_*.py", "test_*.py"]
python_classes = ["Test*", "*Suite"]
python_functions = ["time_*", "test_*", "peakmem_*"]
filterwarnings = [
"error",
'default:.*pyamg, which cannot \(yet\) be imported with NumPy >=2:RuntimeWarning'
]
[tool.coverage.run]
omit = ['*/tests/*']
[tool.changelist]
ignored_user_logins = [
"web-flow",
"pre-commit-ci[bot]"
]