Skip to content

Fix plugin manifest#126

Merged
C-Achard merged 4 commits into
mainfrom
cy/fix-manifest
May 21, 2026
Merged

Fix plugin manifest#126
C-Achard merged 4 commits into
mainfrom
cy/fix-manifest

Conversation

@C-Achard
Copy link
Copy Markdown
Collaborator

  • Fix plugin manifest to use hyphenated package name
  • Add npe2 validation in CI before deploy

C-Achard added 2 commits May 21, 2026 11:35
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.
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.
@C-Achard C-Achard requested a review from Copilot May 21, 2026 09:39
@C-Achard C-Achard self-assigned this May 21, 2026
@C-Achard C-Achard added the fix Something needs to be or has been fixed label May 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the napari plugin manifest metadata with the project’s hyphenated distribution name and adds CI validation to catch manifest issues prior to publishing.

Changes:

  • Fix pyproject.toml napari manifest entry-point declaration and use the hyphenated entry-point name (napari-cellseg3d).
  • Update napari_cellseg3d/napari.yaml plugin name and all command/widget IDs to the hyphenated prefix.
  • Add an npe2 validation step to the deploy workflow before building and uploading to PyPI.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pyproject.toml Corrects the napari.manifest entry-point table and switches the entry-point name to napari-cellseg3d.
napari_cellseg3d/napari.yaml Renames the plugin and command/widget identifiers to the hyphenated plugin name for consistency with packaging.
.github/workflows/test_and_deploy.yml Installs npe2 and runs npe2 validate before build/publish to prevent shipping an invalid manifest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@C-Achard C-Achard merged commit a6ad800 into main May 21, 2026
1 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something needs to be or has been fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants