Skip to content

Commit a6ad800

Browse files
authored
Fix plugin manifest (#126)
* Use hyphenated napari plugin IDs Replace underscore-separated plugin identifiers with hyphen-separated ones. Rename the manifest name to "napari-cellseg3d" and update all command IDs and widget command references in napari_cellseg3d/napari.yaml. Update pyproject.toml to register the manifest under [project.entry-points."napari.manifest"] with key "napari-cellseg3d" -> "napari_cellseg3d:napari.yaml" so the manifest and entry-point names are consistent. * Add npe2 plugin validation to CI Install npe2 in the test workflow and run a plugin validation step before building the package. This ensures napari_cellseg3d/napari.yaml is validated (via `python -m npe2 validate`) as part of CI to catch plugin metadata issues early. * Update uv.lock * Change to 0.2.4
1 parent 3023d5d commit a6ad800

5 files changed

Lines changed: 811 additions & 481 deletions

File tree

.github/workflows/test_and_deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ jobs:
105105
- name: Install build tools
106106
run: |
107107
python -m pip install --upgrade pip
108-
python -m pip install build twine
108+
python -m pip install build twine npe2
109+
110+
- name: Validate plugin
111+
run: |
112+
python -m npe2 validate napari_cellseg3d/napari.yaml
109113
110114
- name: Build package
111115
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ F1-score is computed from the Intersection over Union (IoU) with ground truth la
6666

6767
Read the [article here !](https://elifesciences.org/articles/99848)
6868

69-
### **New version: v0.2.3**
69+
### **New version: v0.2.4**
7070

71-
- v0.2.3:
71+
- v0.2.4:
7272
- Python 3.10-12 support added
7373
- Several fixes to deprecation errors on newer Python versions
7474
- Upgraded packaging to use only pyproject.toml

napari_cellseg3d/napari.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
name: napari_cellseg3d
1+
name: napari-cellseg3d
22
display_name: CellSeg3D
33
schema_version: 0.0.4
44

55
contributions:
66
commands:
7-
- id: napari_cellseg3d.load
7+
- id: napari-cellseg3d.load
88
title: Create reviewer
99
python_name: napari_cellseg3d.plugins:Reviewer
1010

11-
- id: napari_cellseg3d.help
11+
- id: napari-cellseg3d.help
1212
title: Create Help
1313
python_name: napari_cellseg3d.plugins:Helper
1414

15-
- id: napari_cellseg3d.utils
15+
- id: napari-cellseg3d.utils
1616
title: Create utilities
1717
python_name: napari_cellseg3d.plugins:Utilities
1818

19-
- id: napari_cellseg3d.infer
19+
- id: napari-cellseg3d.infer
2020
title: Create Inference widget
2121
python_name: napari_cellseg3d.plugins:Inferer
2222

23-
- id: napari_cellseg3d.train
23+
- id: napari-cellseg3d.train
2424
title: Create Trainer widget
2525
python_name: napari_cellseg3d.plugins:Trainer
2626

2727

2828
widgets:
29-
- command: napari_cellseg3d.load
29+
- command: napari-cellseg3d.load
3030
display_name: Labeling
3131

32-
- command: napari_cellseg3d.infer
32+
- command: napari-cellseg3d.infer
3333
display_name: Inference
3434

35-
- command: napari_cellseg3d.train
35+
- command: napari-cellseg3d.train
3636
display_name: Training
3737

38-
- command: napari_cellseg3d.utils
38+
- command: napari-cellseg3d.utils
3939
display_name: Utilities
4040

41-
- command: napari_cellseg3d.help
41+
- command: napari-cellseg3d.help
4242
display_name: Help/About...

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ email = "maxime.vidal@epfl.ch"
5858
[[project.authors]]
5959
name = "Mackenzie Mathis"
6060
email = "mackenzie@post.harvard.edu"
61-
[project.entry-points]
62-
"napari.manifest".napari_cellseg3d = "napari_cellseg3d:napari.yaml"
61+
[project.entry-points."napari.manifest"]
62+
napari-cellseg3d = "napari_cellseg3d:napari.yaml"
6363
[project.optional-dependencies]
6464
crf = [
6565
"pydensecrf2",

0 commit comments

Comments
 (0)