Skip to content

Commit 8e69353

Browse files
authored
Upgrade Environment, Actions Maintenance (#320)
* composite pixi action * pixi tasks for cache management * fix dropdown note formatting * update binder env * fix intersphinx config, use intersphinx to fix broken links in comp patterns * fix more links * reset cache to update intersphinx * fix more links
1 parent ba43c2f commit 8e69353

File tree

16 files changed

+1002
-761
lines changed

16 files changed

+1002
-761
lines changed

.binder/environment.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- jupyter-book >=1.0.3,<2
7-
- pre-commit >=4.1.0,<5
6+
- jupyter-book >=1.0.4.post1,<2
7+
- pre-commit >=4.2.0,<5
88
- dask-labextension >=7.0.0,<8
9-
- jupyterlab >=4.3.5,<5
9+
- jupyterlab >=4.4.4,<5
1010
- jupyter_bokeh >=4.0.5,<5
1111
- jupyterlab-myst >=2.4.2,<3
1212
- jupyter-resource-usage >=1.1.1,<2
1313
- cartopy >=0.24.0,<0.25
14-
- cf_xarray >=0.10.0,<0.11
15-
- dask >=2025.2.0,<2026
16-
- datashader >=0.17.0,<0.18
17-
- distributed >=2025.2.0,<2026
18-
- gcsfs >=2025.2.0,<2026
14+
- cf_xarray >=0.10.6,<0.11
15+
- dask >=2025.5.1,<2026
16+
- datashader >=0.18.1,<0.19
17+
- distributed >=2025.5.1,<2026
18+
- gcsfs >=2025.5.1,<2026
1919
- geoviews-core >=1.14.0,<2
2020
- gsw >=3.6.19,<4
21-
- hvplot >=0.11.2,<0.12
22-
- h5netcdf >=1.5.0,<2
21+
- hvplot >=0.11.3,<0.12
22+
- h5netcdf >=1.6.2,<2
2323
- ipykernel >=6.29.5,<7
24-
- matplotlib-base >=3.10.0,<4
24+
- matplotlib-base >=3.10.3,<4
2525
- netcdf4 >=1.7.2,<2
26-
- numpy >=2.1.3,<3
27-
- pint-xarray >=0.4,<0.5
28-
- pydap >=3.5.3,<4
29-
- python-graphviz >=0.20.3,<0.21
26+
- numpy >=2.2.6,<3
27+
- pint-xarray >=0.5.0,<0.6
28+
- pydap >=3.5.5,<4
29+
- python-graphviz >=0.21,<0.22
3030
- pooch >=1.8.2,<2
31-
- rioxarray >=0.18.2,<0.19
32-
- scipy >=1.15.2,<2
33-
- sphinx-codeautolink >=0.17.0,<0.18
31+
- rioxarray >=0.19.0,<0.20
32+
- scipy >=1.16.0,<2
33+
- sphinx-codeautolink >=0.17.4,<0.18
3434
- sphinxcontrib-mermaid >=1.0.0,<2
35-
- sphinx-notfound-page >=1.0.4,<2
35+
- sphinx-notfound-page >=1.1.0,<2
3636
- sphinxext-rediraffe >=0.2.7,<0.3
37-
- s3fs >=2025.2.0,<2026
38-
- xarray >=2025.1.2,<2026
39-
- zarr >=3.0.3,<4
40-
- flox >=0.10.0,<0.11
37+
- s3fs >=2025.5.1,<2026
38+
- xarray >=2025.6.1,<2026
39+
- zarr >=3.0.8,<4
40+
- flox >=0.10.4,<0.11
4141
- numbagg >=0.9.0,<0.10
4242
- python >=3.10

.github/actions/setup-pixi/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Setup Pixi"
2+
description: "Create Python environment for GitHub Action Job"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- uses: prefix-dev/setup-pixi@v0.8.10
8+
with:
9+
manifest-path: pyproject.toml
10+
cache: true
11+
activate-environment: true

.github/workflows/main.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ jobs:
3030
with:
3131
path: _build
3232
# NOTE: change key to "jupyterbook-DATE" to force rebuilding cache
33-
key: jupyterbook-20250221
33+
key: jupyterbook-20250701
3434

35-
- uses: prefix-dev/setup-pixi@v0.8.2
36-
with:
37-
manifest-path: pyproject.toml
38-
cache: true
39-
activate-environment: true
35+
- uses: ./.github/actions/setup-pixi
4036

4137
- name: Build JupyterBook
4238
run: |

.github/workflows/nocache.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24-
- uses: prefix-dev/setup-pixi@v0.8.2
25-
with:
26-
manifest-path: pyproject.toml
27-
cache: true
28-
activate-environment: true
24+
- uses: ./.github/actions/setup-pixi
2925

3026
# https://github.com/xarray-contrib/xarray-tutorial/issues/311
3127
- name: Configure graphviz

.github/workflows/pull_request.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ jobs:
2424
with:
2525
path: _build
2626
# NOTE: change key to "jupyterbook-DATE" to force rebuilding cache
27-
key: jupyterbook-20250221
27+
key: jupyterbook-20250701
2828

29-
- uses: prefix-dev/setup-pixi@v0.8.2
30-
with:
31-
manifest-path: pyproject.toml
32-
cache: true
33-
activate-environment: true
29+
- uses: ./.github/actions/setup-pixi
3430

3531
- name: Build JupyterBook
3632
if: github.event.action != 'closed'

.github/workflows/qaqc.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- uses: prefix-dev/setup-pixi@v0.8.2
23-
with:
24-
manifest-path: pyproject.toml
25-
cache: true
26-
activate-environment: true
22+
- uses: ./.github/actions/setup-pixi
2723

2824
# NOTE: this isn't a comprehensive spellcheck, just common typos
2925
- name: Spellcheck

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ _build/
99
*.tiff
1010
*.tif
1111
dask-worker-space/
12+
.jupyter_cache
1213

1314
# Byte-compiled / optimized / DLL files
1415
__pycache__/

_config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,23 @@ sphinx:
9191

9292
intersphinx_mapping:
9393
xarray:
94-
- https://docs.xarray.dev/en/latest/
94+
- https://docs.xarray.dev/en/stable
9595
- null
9696
numpy:
9797
- https://numpy.org/doc/stable
9898
- null
99+
pandas:
100+
- https://pandas.pydata.org/docs
101+
- null
99102
scipy:
100103
- https://docs.scipy.org/doc/scipy
101104
- null
102-
matplotlib:
103-
- https://matplotlib.org/stable/
105+
python:
106+
- https://docs.python.org/3
104107
- null
105108
dask:
106-
- https://docs.dask.org/en/latest
109+
- https://docs.dask.org/en/stable
107110
- null
108-
python:
109-
- https://docs.python.org/3/
110-
- null
111-
pandas:
112-
- https://pandas.pydata.org/pandas-docs/stable
111+
matplotlib:
112+
- https://matplotlib.org/stable
113113
- null

fundamentals/03.3_windowed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"source": [
152152
"### Custom reductions\n",
153153
"\n",
154-
"While common reductions are implemented by default, sometimes it is useful to apply our own windowed operations. For these uses, Xarray provides the `construct` methods for [DataArray.rolling](https://docs.xarray.dev/en/stable/generated/xarray.core.rolling.DataArrayRolling.construct.html) and [Dataset.rolling](https://docs.xarray.dev/en/stable/generated/xarray.core.rolling.DatasetRolling.construct.html).\n",
154+
"While common reductions are implemented by default, sometimes it is useful to apply our own windowed operations. For these uses, Xarray provides the `construct` methods for [DataArray.rolling](https://docs.xarray.dev/en/stable/generated/xarray.computation.rolling.DataArrayRolling.construct.html#xarray.computation.rolling.DataArrayRolling.construct) and [Dataset.rolling](https://docs.xarray.dev/en/stable/generated/xarray.computation.rolling.DatasetRolling.construct.html#xarray.computation.rolling.DatasetRolling.construct).\n",
155155
"\n",
156156
"For rolling over a dimension `time` with a window size `N`, `construct` adds a new dimension (with user-provided name) of size `N`. \n",
157157
"\n",

0 commit comments

Comments
 (0)