Skip to content

Commit

Permalink
Migrate to npe2 (#136)
Browse files Browse the repository at this point in the history
* Migrate to npe2

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
adamltyson and pre-commit-ci[bot] authored Oct 27, 2023
1 parent 0150ee4 commit f7d1578
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
11 changes: 11 additions & 0 deletions brainreg_segment/napari.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: brainreg-segment
schema_version: 0.1.0
contributions:
commands:
- id: brainreg-segment.SegmentationWidget
title: Open segmentation widget
python_name: brainreg_segment.segment:SegmentationWidget

widgets:
- command: brainreg-segment.SegmentationWidget
display_name: Region/track segmentation
10 changes: 0 additions & 10 deletions brainreg_segment/plugins.py

This file was deleted.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ dev = [
"napari-time-slicer" # to test non ndarray-types
]

[project.entry-points."napari.manifest"]
cellfinder-napari = "brainreg_segment:napari.yaml"

[project.scripts]
brainreg-segment = "brainreg_segment.segment:main"
Expand Down

0 comments on commit f7d1578

Please sign in to comment.