-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (114 loc) · 4.33 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (114 loc) · 4.33 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "patchworks"
dynamic = ["version"]
description = "Tiled processing of arbitrarily large images with globally consistent labels"
readme = "README.md"
license = { text = "GPL-3.0-only" }
authors = [{ name = "Laurent Guerard", email = "laurent.guerard@unibas.ch" }]
keywords = [
"image processing",
"tiling",
"chunked",
"zarr",
"dask",
"segmentation",
"bioimage",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Image Processing",
]
requires-python = ">=3.9"
dependencies = [
"dask[array]>=2023.1.0",
"numpy>=1.24",
"zarr>=2.14",
"scipy>=1.9",
]
[project.optional-dependencies]
io = ["psutil", "tqdm"]
cellpose = ["cellpose>=3.0"]
cellpose3 = ["cellpose>=3.0,<4"]
cellpose4 = ["cellpose>=4"]
# dog enables the deconvolution step in patchworks.plugins.dog (method:
# "custom" -> segment). cupy, for that plugin's use_gpu=True blur/label
# path, isn't included here — it's CUDA-version-specific (e.g.
# cupy-cuda12x), install it separately to match your CUDA version.
dog = ["pycudadecon"]
gpu = ["nvidia-ml-py"]
# bioio enables converting any image format (CZI, LIF, ND2, OME-TIFF, …) to
# OME-ZARR. Ships the common native readers (faster than going through Java)
# plus bioio-bioformats, the Bio-Formats catch-all reader (needs a JVM).
bioio = [
"bioio",
"bioio-bioformats",
"bioio-nd2",
"bioio-ome-tiff",
"bioio-czi",
"bioio-tifffile",
"bioio-lif",
]
# imaris reads .ims files natively (HDF5, no JVM) for OME-ZARR conversion.
imaris = ["imaris-ims-file-reader"]
# napari enables the interactive viewer plugin.
# - napari >= 0.7.1: adds locked_data_level (manual multiscale resolution pin
# for 2D *and* 3D) — before this, 3D view always showed the coarsest
# pyramid level unconditionally, with no way to change it.
# - numpy < 2.5: napari/numba don't support numpy 2.5 yet.
# - ipykernel < 7: napari-console requires ipykernel < 7.
# - lxml-html-clean: napari's notebook_display imports lxml.html.clean, split
# into a separate package in lxml >= 5.2 (else ImportError on Viewer()).
# - glasbey: distinct high-contrast label LUTs for view_in_napari.
# - napari-chunked-regionprops (https://github.com/imcf/napari-chunked-regionprops):
# out-of-core regionprops-style measurements (area/centroid/intensity
# stats) for huge Labels layers, straight off their backing dask/zarr
# arrays — the "Measure" dock widget. Formerly napari-dask-ndmeasure;
# renamed when its engine dropped dask_image.ndmeasure for a chunk-local
# map/merge that scales with chunk count, not object count.
# - pyqt6 < 6.10: PyQt6-Qt6 6.10.2's Windows wheel fails to import (`DLL load
# failed while importing QtWidgets: The specified procedure could not be
# found`) — confirmed unrelated to napari/qtpy, reproduces on a bare
# `from PyQt6.QtWidgets import QApplication`. 6.9.1 works; excluding the
# whole 6.10.x line until a fixed release is confirmed.
napari = [
"napari[all]>=0.7.1",
"numpy<2.5",
"ipykernel<7",
"lxml-html-clean",
"glasbey",
"napari-chunked-regionprops>=0.1.0",
"pyqt6<6.10",
]
# workflow runs the Snakemake pipeline (per-tile SLURM jobs across GPUs).
# openpyxl -> scripts/run_multi.py writes label_relations() output as an
# Excel workbook (per-object + per-container sheets), not a plain CSV.
workflow = ["snakemake>=8", "snakemake-executor-plugin-slurm", "openpyxl"]
dev = ["pytest", "pytest-cov", "scikit-image", "psutil", "tqdm"]
docs = ["mkdocs-material>=9.0", "mkdocstrings[python]>=0.24"]
all = [
"patchworks[io,gpu,bioio,imaris,napari]",
"psutil",
"tqdm",
"scikit-image",
]
[project.urls]
Homepage = "https://github.com/imcf/patchworks"
Issues = "https://github.com/imcf/patchworks/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/patchworks"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 80