Skip to content

Commit b84b04a

Browse files
authored
Fix gh actions failures (#2016)
* link to stable hdmf-zarr docs * remove scipy misc import from tutorial * fix tox env setup * update CHANGELOG.md * update zarr intersphinx mapping
1 parent 80fc386 commit b84b04a

File tree

5 files changed

+36
-51
lines changed

5 files changed

+36
-51
lines changed

.github/workflows/run_all_tests.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,30 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
include:
25-
- { name: linux-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: ubuntu-latest }
26-
- { name: linux-python3.10 , test-tox-env: test-py310 , build-tox-env: build-py310 , python-ver: "3.10", os: ubuntu-latest }
27-
- { name: linux-python3.11 , test-tox-env: test-py311 , build-tox-env: build-py311 , python-ver: "3.11", os: ubuntu-latest }
28-
- { name: linux-python3.11-opt , test-tox-env: test-py311-optional , build-tox-env: build-py311 , python-ver: "3.11", os: ubuntu-latest }
29-
- { name: linux-python3.12 , test-tox-env: test-py312 , build-tox-env: build-py312 , python-ver: "3.12", os: ubuntu-latest }
30-
- { name: linux-python3.13 , test-tox-env: test-py313 , build-tox-env: build-py313 , python-ver: "3.13", os: ubuntu-latest }
31-
- { name: linux-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: ubuntu-latest }
32-
- { name: linux-python3.13-prerelease , test-tox-env: test-py313-prerelease, build-tox-env: build-py313-prerelease, python-ver: "3.13", os: ubuntu-latest }
33-
- { name: windows-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: windows-latest }
34-
- { name: windows-python3.10 , test-tox-env: test-py310 , build-tox-env: build-py310 , python-ver: "3.10", os: windows-latest }
35-
- { name: windows-python3.11 , test-tox-env: test-py311 , build-tox-env: build-py311 , python-ver: "3.11", os: windows-latest }
36-
- { name: windows-python3.11-opt , test-tox-env: test-py311-optional , build-tox-env: build-py311 , python-ver: "3.11", os: windows-latest }
37-
- { name: windows-python3.12 , test-tox-env: test-py312 , build-tox-env: build-py312 , python-ver: "3.12", os: windows-latest }
38-
- { name: windows-python3.13 , test-tox-env: test-py313 , build-tox-env: build-py313 , python-ver: "3.13", os: windows-latest }
39-
- { name: windows-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: windows-latest }
40-
- { name: windows-python3.13-prerelease, test-tox-env: test-py313-prerelease, build-tox-env: build-py313-prerelease, python-ver: "3.13", os: windows-latest }
41-
- { name: macos-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: macos-13 }
42-
- { name: macos-python3.10 , test-tox-env: test-py310 , build-tox-env: build-py310 , python-ver: "3.10", os: macos-latest }
43-
- { name: macos-python3.11 , test-tox-env: test-py311 , build-tox-env: build-py311 , python-ver: "3.11", os: macos-latest }
44-
- { name: macos-python3.11-opt , test-tox-env: test-py311-optional , build-tox-env: build-py311 , python-ver: "3.11", os: macos-latest }
45-
- { name: macos-python3.12 , test-tox-env: test-py312 , build-tox-env: build-py312 , python-ver: "3.12", os: macos-latest }
46-
- { name: macos-python3.13 , test-tox-env: test-py313 , build-tox-env: build-py313 , python-ver: "3.13", os: macos-latest }
47-
- { name: macos-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: macos-latest }
48-
- { name: macos-python3.13-prerelease , test-tox-env: test-py313-prerelease, build-tox-env: build-py313-prerelease, python-ver: "3.13", os: macos-latest }
25+
- { name: linux-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: ubuntu-latest }
26+
- { name: linux-python3.10 , test-tox-env: test-py310-pinned , build-tox-env: build-py310-pinned , python-ver: "3.10", os: ubuntu-latest }
27+
- { name: linux-python3.11 , test-tox-env: test-py311-pinned , build-tox-env: build-py311-pinned , python-ver: "3.11", os: ubuntu-latest }
28+
- { name: linux-python3.11-opt , test-tox-env: test-py311-optional-pinned, build-tox-env: build-py311-pinned , python-ver: "3.11", os: ubuntu-latest }
29+
- { name: linux-python3.12 , test-tox-env: test-py312-pinned , build-tox-env: build-py312-pinned , python-ver: "3.12", os: ubuntu-latest }
30+
- { name: linux-python3.13 , test-tox-env: test-py313-pinned , build-tox-env: build-py313-pinned , python-ver: "3.13", os: ubuntu-latest }
31+
- { name: linux-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: ubuntu-latest }
32+
- { name: linux-python3.13-prerelease , test-tox-env: test-py313-prerelease , build-tox-env: build-py313-prerelease, python-ver: "3.13", os: ubuntu-latest }
33+
- { name: windows-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: windows-latest }
34+
- { name: windows-python3.10 , test-tox-env: test-py310-pinned , build-tox-env: build-py310-pinned , python-ver: "3.10", os: windows-latest }
35+
- { name: windows-python3.11 , test-tox-env: test-py311-pinned , build-tox-env: build-py311-pinned , python-ver: "3.11", os: windows-latest }
36+
- { name: windows-python3.11-opt , test-tox-env: test-py311-optional-pinned, build-tox-env: build-py311-pinned , python-ver: "3.11", os: windows-latest }
37+
- { name: windows-python3.12 , test-tox-env: test-py312-pinned , build-tox-env: build-py312-pinned , python-ver: "3.12", os: windows-latest }
38+
- { name: windows-python3.13 , test-tox-env: test-py313-pinned , build-tox-env: build-py313-pinned , python-ver: "3.13", os: windows-latest }
39+
- { name: windows-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: windows-latest }
40+
- { name: windows-python3.13-prerelease, test-tox-env: test-py313-prerelease , build-tox-env: build-py313-prerelease, python-ver: "3.13", os: windows-latest }
41+
- { name: macos-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: macos-13 }
42+
- { name: macos-python3.10 , test-tox-env: test-py310-pinned , build-tox-env: build-py310-pinned , python-ver: "3.10", os: macos-latest }
43+
- { name: macos-python3.11 , test-tox-env: test-py311-pinned , build-tox-env: build-py311-pinned , python-ver: "3.11", os: macos-latest }
44+
- { name: macos-python3.11-opt , test-tox-env: test-py311-optional-pinned, build-tox-env: build-py311-pinned , python-ver: "3.11", os: macos-latest }
45+
- { name: macos-python3.12 , test-tox-env: test-py312-pinned , build-tox-env: build-py312-pinned , python-ver: "3.12", os: macos-latest }
46+
- { name: macos-python3.13 , test-tox-env: test-py313-pinned , build-tox-env: build-py313-pinned , python-ver: "3.13", os: macos-latest }
47+
- { name: macos-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: macos-latest }
48+
- { name: macos-python3.13-prerelease , test-tox-env: test-py313-prerelease , build-tox-env: build-py313-prerelease, python-ver: "3.13", os: macos-latest }
4949
steps:
5050
- name: Cancel non-latest runs
5151
uses: styfle/[email protected]
@@ -139,10 +139,10 @@ jobs:
139139
matrix:
140140
include:
141141
- { name: conda-linux-python3.9-minimum , test-tox-env: test-py39-minimum , build-tox-env: build-py39-minimum , python-ver: "3.9" , os: ubuntu-latest }
142-
- { name: conda-linux-python3.10 , test-tox-env: test-py310 , build-tox-env: build-py310 , python-ver: "3.10", os: ubuntu-latest }
143-
- { name: conda-linux-python3.11 , test-tox-env: test-py311 , build-tox-env: build-py311 , python-ver: "3.11", os: ubuntu-latest }
144-
- { name: conda-linux-python3.12 , test-tox-env: test-py312 , build-tox-env: build-py312 , python-ver: "3.12", os: ubuntu-latest }
145-
- { name: conda-linux-python3.13 , test-tox-env: test-py313 , build-tox-env: build-py313 , python-ver: "3.13", os: ubuntu-latest }
142+
- { name: conda-linux-python3.10 , test-tox-env: test-py310-pinned , build-tox-env: build-py310-pinned , python-ver: "3.10", os: ubuntu-latest }
143+
- { name: conda-linux-python3.11 , test-tox-env: test-py311-pinned , build-tox-env: build-py311-pinned , python-ver: "3.11", os: ubuntu-latest }
144+
- { name: conda-linux-python3.12 , test-tox-env: test-py312-pinned , build-tox-env: build-py312-pinned , python-ver: "3.12", os: ubuntu-latest }
145+
- { name: conda-linux-python3.13 , test-tox-env: test-py313-pinned , build-tox-env: build-py313-pinned , python-ver: "3.13", os: ubuntu-latest }
146146
- { name: conda-linux-python3.13-upgraded , test-tox-env: test-py313-upgraded , build-tox-env: build-py313-upgraded , python-ver: "3.13", os: ubuntu-latest }
147147
- { name: conda-linux-python3.13-prerelease, test-tox-env: test-py313-prerelease, build-tox-env: build-py313-prerelease, python-ver: "3.13", os: ubuntu-latest }
148148
steps:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
### Documentation and tutorial enhancements
1515
- Updated `SpikeEventSeries`, `DecompositionSeries`, and `FilteredEphys` examples. @stephprince [#2012](https://github.com/NeurodataWithoutBorders/pynwb/pull/2012)
16+
- Replaced deprecated `scipy.misc.face` dataset in the images tutorial with another example. @stephprince [#2016](https://github.com/NeurodataWithoutBorders/pynwb/pull/2016)
1617

1718
## PyNWB 2.8.3 (November 19, 2024)
1819

docs/gallery/domain/images.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -296,30 +296,14 @@
296296
# :py:class:`~pynwb.image.IndexSeries` that indexes into the
297297
# :py:class:`~pynwb.base.Images`.
298298

299-
from scipy import misc
300-
301299
from pynwb.base import ImageReferences
302300
from pynwb.image import GrayscaleImage, Images, IndexSeries, RGBImage
303301

304-
gs_face = GrayscaleImage(
305-
name="gs_face",
306-
data=misc.face(gray=True),
307-
description="Grayscale version of a raccoon.",
308-
resolution=35.433071,
309-
)
310-
311-
rgb_face = RGBImage(
312-
name="rgb_face",
313-
data=misc.face(),
314-
resolution=70.0,
315-
description="RGB version of a raccoon.",
316-
)
317-
318302
images = Images(
319303
name="raccoons",
320-
images=[rgb_face, gs_face],
304+
images=[rgb_logo, gs_logo],
321305
description="A collection of raccoons.",
322-
order_of_images=ImageReferences("order_of_images", [rgb_face, gs_face]),
306+
order_of_images=ImageReferences("order_of_images", [rgb_logo, gs_logo]),
323307
)
324308

325309
idx_series = IndexSeries(

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ def __call__(self, filename):
147147
'fsspec': ("https://filesystem-spec.readthedocs.io/en/latest/", None),
148148
'nwbwidgets': ("https://nwb-widgets.readthedocs.io/en/latest/", None),
149149
'nwb-overview': ("https://nwb-overview.readthedocs.io/en/latest/", None),
150-
'zarr': ("https://zarr.readthedocs.io/en/stable/", None),
151-
'hdmf-zarr': ("https://hdmf-zarr.readthedocs.io/en/latest/", None),
150+
'zarr': ("https://zarr.readthedocs.io/en/v2.18.4/", None), # TODO - update when hdmf-zarr supports Zarr 3.0
151+
'hdmf-zarr': ("https://hdmf-zarr.readthedocs.io/en/stable/", None),
152152
'numcodecs': ("https://numcodecs.readthedocs.io/en/latest/", None),
153153
}
154154

@@ -161,7 +161,7 @@ def __call__(self, filename):
161161
'hdmf-docs': ('https://hdmf.readthedocs.io/en/stable/%s', '%s'),
162162
'dandi': ('https://www.dandiarchive.org/%s', '%s'),
163163
"nwbinspector": ("https://nwbinspector.readthedocs.io/en/dev/%s", "%s"),
164-
'hdmf-zarr': ('https://hdmf-zarr.readthedocs.io/en/latest/%s', '%s'),
164+
'hdmf-zarr': ('https://hdmf-zarr.readthedocs.io/en/stable/%s', '%s'),
165165
}
166166

167167
nitpicky = True

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7+
envlist = test-py{39,310,311,312,313}-pinned
78
requires = pip >= 22.0
89

910
[testenv]
@@ -32,8 +33,7 @@ commands =
3233
build: python -m build
3334
wheelinstall: python -c "import pynwb"
3435

35-
# list of pre-defined environments. (Technically environments not listed here
36-
# like build-py312 can also be used.)
36+
# list of pre-defined environments.
3737
[testenv:test-py313-upgraded]
3838
[testenv:test-py313-prerelease]
3939
[testenv:test-py311-optional-pinned] # some optional reqs not compatible with py312 yet

0 commit comments

Comments
 (0)