Skip to content

Commit 42e56a7

Browse files
committed
fix: rename zarr entry-point group for pyproject schema
Use iohub.zarr_implementations instead of iohub.zarr-implementations. SchemaStore's pyproject.json only allows group names matching ^\w+(\.\w+)*$ (no hyphens in a segment), which tools like Taplo enforce; the previous name caused "Additional properties are not allowed" validation errors. Made-with: Cursor
1 parent 84db46e commit 42e56a7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tensorstore = [
5454
"tensorstore>=0.1.64",
5555
]
5656

57-
[project.entry-points."iohub.zarr-implementations"]
57+
[project.entry-points."iohub.zarr_implementations"]
5858
zarr = "iohub.core.implementations.zarr_python:ZarrPythonImplementation"
5959
tensorstore = "iohub.core.implementations.tensorstore:TensorStoreImplementation"
6060

src/iohub/core/implementations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Zarr I/O implementation backends.
22
3-
Implementations are discovered via the ``iohub.zarr-implementations``
3+
Implementations are discovered via the ``iohub.zarr_implementations``
44
entry point group. See :mod:`iohub.core.registry` for the discovery mechanism.
55
66
For direct imports::

src/iohub/core/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _discover() -> None:
4242
exc_info=True,
4343
)
4444
# Entrypoint plugins can override builtins
45-
for ep in entry_points(group="iohub.zarr-implementations"):
45+
for ep in entry_points(group="iohub.zarr_implementations"):
4646
try:
4747
_IMPLEMENTATIONS[ep.name] = ep.load()
4848
except Exception as err: # noqa: BLE001 — plugin loading may fail in many ways

0 commit comments

Comments
 (0)