Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Make napari functionality optional
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Aug 31, 2023
1 parent 67dec4c commit 9fe13ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
34 changes: 18 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,12 @@ classifiers = [
]
requires-python = ">=3.8"
dependencies = [
"brainglobe-napari-io",
"brainglobe-utils",
"dask[array]",
"fancylog>=0.0.7",
"magicgui",
"napari-ndtiffs",
"napari-plugin-engine >= 0.1.4",
"napari[all]",
"natsort",
"numba",
"numpy",
"pooch>=1",
"qtpy",
"scikit-image",
"scikit-learn",
# See https://github.com/brainglobe/cellfinder-core/issues/103 for < 2.12.0 pin
Expand All @@ -44,12 +37,8 @@ dependencies = [
]
dynamic = ["version"]

[project.urls]
Homepage = "https://brainglobe.info/documentation/cellfinder/index.html"
"Source Code" = "https://github.com/brainglobe/cellfinder-core"
"Bug Tracker" = "https://github.com/brainglobe/cellfinder-core/issues"
Documentation = "https://brainglobe.info/documentation/cellfinder/index.html"
"User Support" = "https://forum.image.sc/tag/brainglobe"
[project.entry-points."napari.manifest"]
cellfinder = "cellfinder.napari:napari.yaml"

[project.optional-dependencies]
dev = [
Expand All @@ -64,14 +53,27 @@ dev = [
"pytest",
"tox",
]

[project.entry-points."napari.manifest"]
cellfinder = "cellfinder.napari:napari.yaml"
napari = [
"brainglobe-napari-io",
"magicgui",
"napari-ndtiffs",
"napari-plugin-engine >= 0.1.4",
"napari[all]",
"pooch >= 1",
"qtpy",
]

[project.scripts]
cellfinder_download = "cellfinder.core.download.cli:main"
cellfinder_train = "cellfinder.core.train.train_yml:cli"

[project.urls]
Homepage = "https://brainglobe.info/documentation/cellfinder/index.html"
"Source Code" = "https://github.com/brainglobe/cellfinder-core"
"Bug Tracker" = "https://github.com/brainglobe/cellfinder-core/issues"
Documentation = "https://brainglobe.info/documentation/cellfinder/index.html"
"User Support" = "https://forum.image.sc/tag/brainglobe"

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = 'setuptools.build_meta'
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ deps =
# ensure it is installed with the default Qt backend here.
napari[all]
pytest-qt
extras =
napari
passenv =
NUMBA_DISABLE_JIT
CI
Expand Down

0 comments on commit 9fe13ff

Please sign in to comment.