From c6496d43bdd18f3a91ea835c01068aae91003b5e Mon Sep 17 00:00:00 2001 From: Andrey Aristov <aaristov@pasteur.fr> Date: Thu, 19 May 2022 17:14:49 +0200 Subject: [PATCH] fix tests --- .gitignore | 1 + setup.cfg | 43 +++++++++++++++++++---------------- src/napari_segment/_reader.py | 5 +++- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index fd2845d..42fb8d4 100644 --- a/.gitignore +++ b/.gitignore @@ -83,3 +83,4 @@ venv/ # written by setuptools_scm **/_version.py +bin* diff --git a/setup.cfg b/setup.cfg index f297375..202ec2d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,25 +1,26 @@ [metadata] -name = napari-segment - -author = Andrey Aristov -author_email = aaristov@pasteur.fr -url = https://github.com/aaristov/napari-segment -license = BSD-3-Clause +name = napari_segment description = Segment organoids and measure intensities long_description = file: README.md long_description_content_type = text/markdown +url = https://github.com/aaristov/napari-segment +author = Andrey Aristov +author_email = aaristov@pasteur.fr +license = BSD-3-Clause +license_file = LICENSE classifiers = Development Status :: 2 - Pre-Alpha - Intended Audience :: Developers Framework :: napari - Topic :: Software Development :: Testing + Intended Audience :: Developers + License :: OSI Approved :: BSD License + Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 - Operating System :: OS Independent - License :: OSI Approved :: BSD License + Topic :: Software Development :: Testing project_urls = Bug Tracker = https://github.com/aaristov/napari-segment/issues Documentation = https://github.com/aaristov/napari-segment#README.md @@ -28,22 +29,24 @@ project_urls = [options] packages = find: -include_package_data = True -python_requires = >=3.8 -package_dir = - =src -setup_requires = setuptools_scm -# add your package requirements here install_requires = nd2 numpy + scikit-image + zarr +python_requires = >=3.8 +include_package_data = True +package_dir = + =src +setup_requires = + setuptools-scm [options.packages.find] where = src +[options.entry_points] +napari.manifest = + napari-segment = napari_segment:napari.yaml + [options.package_data] * = *.yaml - -[options.entry_points] -napari.manifest = - napari-segment = napari_segment:napari.yaml diff --git a/src/napari_segment/_reader.py b/src/napari_segment/_reader.py index 0196ab7..cb88a94 100644 --- a/src/napari_segment/_reader.py +++ b/src/napari_segment/_reader.py @@ -41,7 +41,10 @@ def napari_get_reader(path): return read_zarr # otherwise we return the *function* that can read ``path``. - return reader_function + if path.endswith(".npy"): + return reader_function + + return None def read_zarr(path): -- GitLab