Skip to content

Commit 89f83b0

Browse files
lguerardclaude
andauthored
fix(deps): 🐛 require napari>=0.5.5 for NumPy 2 compatibility (#37)
Old napari 0.4.x calls np.array(..., copy=False), which raises under NumPy 2 and breaks napari.Viewer() with a ValidationError. Pin the napari extra to >=0.5.5 (NumPy 2 + pydantic 2 compatible). Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 223de5a commit 89f83b0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ bioio = [
5757
# imaris reads .ims files natively (HDF5, no JVM) for OME-ZARR conversion.
5858
imaris = ["imaris-ims-file-reader"]
5959
# napari enables the interactive viewer plugin.
60-
# lxml-html-clean: napari's notebook_display imports lxml.html.clean, which
61-
# split into a separate package in lxml >= 5.2 (else ImportError on Viewer()).
62-
napari = ["napari[all]", "lxml-html-clean"]
60+
# - napari >= 0.5: NumPy 2.0 compatible (older 0.4.x uses np.array(copy=False),
61+
# which raises under NumPy 2 -> ValidationError on Viewer()).
62+
# - lxml-html-clean: napari's notebook_display imports lxml.html.clean, split
63+
# into a separate package in lxml >= 5.2 (else ImportError on Viewer()).
64+
napari = ["napari[all]>=0.5.5", "lxml-html-clean"]
6365
# workflow runs the Snakemake pipeline (per-tile SLURM jobs across GPUs).
6466
workflow = ["snakemake>=8", "snakemake-executor-plugin-slurm"]
6567
dev = ["pytest", "pytest-cov", "scikit-image", "psutil", "tqdm"]

0 commit comments

Comments
 (0)