Skip to content

Commit 6d9310c

Browse files
authored
Merge pull request #190 from dstansby/unpin-napari
Make compatible with napari 0.4.18
2 parents 8dbfdba + 9159449 commit 6d9310c

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

docs/changelog.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Bug fixes
66
~~~~~~~~~
77
- A full dataset is no longer read into memory when using ``HistogramWidget``.
88
Only the current slice is loaded.
9+
- Fixed compatibility with napari 0.4.18.
910

1011
Changes
1112
~~~~~~~

setup.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ project_urls =
2828
packages = find:
2929
install_requires =
3030
matplotlib
31-
napari<0.4.18
31+
napari
3232
numpy
3333
tinycss2
3434
python_requires = >=3.8
@@ -47,15 +47,15 @@ napari.manifest =
4747

4848
[options.extras_require]
4949
docs =
50-
napari[all]
50+
napari[all]==0.4.17
5151
numpydoc
5252
pydata-sphinx-theme
5353
qtgallery
5454
sphinx
5555
sphinx-automodapi
5656
sphinx-gallery
5757
testing =
58-
napari[pyqt6-experimental]
58+
napari[pyqt6-experimental]>=0.4.18
5959
pooch
6060
pyqt6
6161
pytest
Loading
Loading
Loading

src/napari_matplotlib/tests/test_theme.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ def _mock_up_theme() -> None:
3737
https://napari.org/stable/gallery/new_theme.html
3838
"""
3939
blue_theme = napari.utils.theme.get_theme("dark", False)
40-
blue_theme.name = "blue"
40+
blue_theme.label = "blue"
4141
blue_theme.background = "#4169e1" # my favourite shade of blue
42-
napari.utils.theme.register_theme("blue", blue_theme)
42+
napari.utils.theme.register_theme(
43+
"blue", blue_theme, source="napari-mpl-tests"
44+
)
4345

4446

4547
def test_theme_background_check(make_napari_viewer):

0 commit comments

Comments
 (0)