Skip to content

Commit f63c351

Browse files
committed
merge
2 parents 6e4d427 + 83d7d93 commit f63c351

10 files changed

Lines changed: 120 additions & 169 deletions

File tree

.github/workflows/plugin_preview.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/test_and_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
platform: [ubuntu-latest, windows-latest, macos-latest]
15-
python-version: [3.8, 3.9]
15+
python-version: [3.9]
1616

1717
steps:
1818
- uses: actions/checkout@v2

napari_allencell_segmenter/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
except ImportError:
44
__version__ = "unknown"
55

6-
from ._dock_widget import napari_experimental_provide_dock_widget # noqa: F401
7-
86
# Do not edit this string manually, always use bumpversion
97
# Details in CONTRIBUTING.md
108
__version__ = "2.1.12"

napari_allencell_segmenter/_dock_widget.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Hook specifications: https://napari.org/docs/dev/plugins/hook_specifications.html
21
import napari
32

43
from napari_allencell_segmenter.core.application import Application
5-
from napari_plugin_engine import napari_hook_implementation
64
from qtpy.QtWidgets import QWidget, QVBoxLayout, QSizePolicy
75

86
"""
@@ -28,8 +26,3 @@ def __init__(self, napari_viewer: napari.Viewer):
2826
self.setLayout(QVBoxLayout())
2927
self._application = Application(napari_viewer, self.layout())
3028
self._application.router.batch_processing() # Initialize first screen
31-
32-
33-
@napari_hook_implementation
34-
def napari_experimental_provide_dock_widget(): # pragma: no-cover
35-
return [(WorkflowEditorWidget, {"name": "Workflow editor"}), (BatchProcessingWidget, {"name": "Batch processing"})]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: napari-allencell-segmenter
2+
display_name: Allen Cell Segmenter
3+
contributions:
4+
commands:
5+
- id: napari-allencell-segmenter.workflow_editor
6+
title: Workflow editor
7+
python_name: napari_allencell_segmenter._dock_widget:WorkflowEditorWidget
8+
9+
- id: napari-allencell-segmenter.batch_processing
10+
title: Batch processing
11+
python_name: napari_allencell_segmenter._dock_widget:BatchProcessingWidget
12+
readers:
13+
writers:
14+
sample_data:
15+
widgets:
16+
- command: napari-allencell-segmenter.workflow_editor
17+
display_name: Workflow editor
18+
19+
- command: napari-allencell-segmenter.batch_processing
20+
display_name: Batch processing

napari_allencell_segmenter/widgets/workflow_thumbnails.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
class WorkflowThumbnails(QWidget):
22-
2322
"""
2423
A widget containing thumbnail images for workflows.
2524

pyproject.toml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,94 @@
11
[tool.black]
22
line-length = 120
3+
4+
[build-system]
5+
requires = ["setuptools>=61", "setuptools_scm>=7"]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "napari-allencell-segmenter"
10+
version = "2.1.12-dev0" # setuptools_scm will override if tags exist
11+
description = "A plugin that enables 3D image segmentation provided by Allen Institute for Cell Science"
12+
readme = "README.md"
13+
license = { text = "BSD-3" }
14+
requires-python = ">=3.9"
15+
authors = [
16+
{ name = "Allen Institute for Cell Science" }
17+
]
18+
classifiers = [
19+
"Development Status :: 5 - Production/Stable",
20+
"Intended Audience :: Science/Research",
21+
"Framework :: napari",
22+
"Topic :: Scientific/Engineering",
23+
"Topic :: Scientific/Engineering :: Visualization",
24+
"Topic :: Scientific/Engineering :: Information Analysis",
25+
"Topic :: Scientific/Engineering :: Bio-Informatics",
26+
"Programming Language :: Python :: 3",
27+
"Programming Language :: Python :: 3.9",
28+
"Operating System :: OS Independent",
29+
"License :: OSI Approved :: BSD License",
30+
]
31+
32+
dependencies = [
33+
"napari>=0.4.9,<0.6.2",
34+
"napari-plugin-engine>=0.1.4",
35+
"numpy<2.0.0",
36+
"aicssegmentation >= 0.5.3",
37+
"magicgui >= 0.2.9",
38+
"aicsimageio ~= 4.0.5",
39+
"opencv-python-headless>=4.5.1",
40+
"importlib-metadata==4.11.4",
41+
"npe2",
42+
# the following changes were made to get ci working on 3.9
43+
"itk-core>=5.3,<5.4",
44+
"itkwidgets==0.27.0",
45+
"itk-meshtopolydata==0.10.0",
46+
"pydantic==1.10.12",
47+
]
48+
49+
[project.optional-dependencies]
50+
test = [
51+
"black>=19.10b0",
52+
"codecov>=2.0.22",
53+
"docutils>=0.10,<0.16",
54+
"flake8>=3.7.7",
55+
"psutil>=5.7.0",
56+
"pytest>=4.3.0",
57+
"pytest-cov==2.6.1",
58+
"pytest-raises>=0.10",
59+
"pytest-qt>=3.3.0",
60+
"quilt3>=3.1.12",
61+
]
62+
dev = [
63+
"bumpversion>=0.5.3",
64+
"coverage>=5.0a4",
65+
"gitchangelog>=3.0.4",
66+
"ipython>=7.5.0",
67+
"m2r>=0.2.1",
68+
"pytest-runner>=4.4",
69+
"Sphinx>=2.0.0b1,<3",
70+
"sphinx_rtd_theme>=0.1.2",
71+
"tox==3.25.0",
72+
"twine>=1.13.0",
73+
"wheel>=0.33.1",
74+
]
75+
setup = ["pytest-runner"]
76+
77+
[project.entry-points."napari.manifest"]
78+
napari-allencell-segmenter = "napari_allencell_segmenter:napari.yaml"
79+
80+
[tool.setuptools_scm]
81+
write_to = "napari_allencell_segmenter/_version.py"
82+
83+
[tool.setuptools.packages.find]
84+
include = ["napari_allencell_segmenter*"]
85+
86+
[project.urls]
87+
"Bug Tracker" = "https://github.com/AllenCell/napari-allencell-segmenter/issues"
88+
"Documentation" = "https://github.com/AllenCell/napari-allencell-segmenter#README.md"
89+
"Source Code" = "https://github.com/AllenCell/napari-allencell-segmenter"
90+
"User Support" = "https://github.com/AllenCell/napari-allencell-segmenter/issues"
91+
92+
# allow pytest testing on pyqt5
93+
[tool.pytest]
94+
qt_api="pyqt5"

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,5 @@ omit =
5151
*/_tests/*
5252
**/__init__.py
5353

54-
[options.entry_points]
55-
napari.manifest =
56-
example-plugin = napari_allencell_segmenter:napari.yaml
57-
5854
[options.package_data]
5955
example-plugin = napari.yaml

setup.py

Lines changed: 0 additions & 130 deletions
This file was deleted.

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# For more information about tox, see https://tox.readthedocs.io/en/latest/
22
[tox]
3-
envlist = py{37,38,39}-{linux,macos,windows}
3+
envlist = py{39}-{linux,macos,windows}
44

55
[gh-actions]
66
python =
7-
3.7: py37
8-
3.8: py38
97
3.9: py39
108

119
[gh-actions:env]
@@ -35,4 +33,10 @@ deps =
3533
qtpy
3634
pyqt5
3735
opencv-python-headless
36+
scikit-build
37+
itk-core>=5.3,<5.4
38+
itkwidgets==0.27.0
39+
itk-meshtopolydata==0.10.0
40+
pydantic==1.10.12
41+
3842
commands = pytest -v --color=yes --cov=napari_allencell_segmenter --cov-report=xml

0 commit comments

Comments
 (0)