Skip to content

Commit

Permalink
Merge pull request #55 from sbesson/napari_deps
Browse files Browse the repository at this point in the history
Add minimal napari requirement for the plugin to be discovered
  • Loading branch information
sbesson authored Jun 30, 2022
2 parents 4e506d6 + 6121d50 commit 177937b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 0 additions & 7 deletions napari_ome_zarr/_tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
from napari_ome_zarr._reader import napari_get_reader


@pytest.fixture(autouse=True, scope="session")
def load_napari_conftest(pytestconfig):
from napari import conftest

pytestconfig.pluginmanager.register(conftest, "napari-conftest")


class TestNapari:
@pytest.fixture(autouse=True)
def initdir(self, tmpdir):
Expand Down
1 change: 1 addition & 0 deletions napari_ome_zarr/napari.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ contributions:
- command: napari-ome-zarr.get_reader
filename_patterns:
- "*.zarr"
- "*.zarr/"
accepts_directories: true
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ classifiers =
Topic :: Software Development :: Testing
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Operating System :: OS Independent
License :: OSI Approved :: BSD License
project_urls =
Expand All @@ -35,6 +35,7 @@ install_requires =
ome-zarr>=0.3.0
numpy
vispy
napari>=0.4.13
include_package_data = True

[options.entry_points]
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py{37,38,39}-{linux,macos,windows}
envlist = py{38,39,310}-{linux,macos,windows}

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[gh-actions:env]
PLATFORM =
Expand Down

0 comments on commit 177937b

Please sign in to comment.