Skip to content

Commit 06afc49

Browse files
Merge branch 'main' into ruff-tidy
* main: (25 commits) update to version 0.12.1 (SciTools#494) chore: update pre-commit hooks (SciTools#441) Updated environment lockfiles (SciTools#483) Bump scitools/workflows from 2025.03.3 to 2025.04.0 (SciTools#493) Backwards compatible loading (SciTools#479) Add `benchmarks/custom_bms` from template (SciTools#488) Add ci-template-check.yml. (SciTools#484) Fix accepted esmf_args (SciTools#486) update to version 0.13.dev0 (SciTools#477) update to version 0.12.0 (SciTools#476) Bump codecov/codecov-action from 4 to 5 (SciTools#436) Bump scitools/workflows from 2025.03.2 to 2025.03.3 (SciTools#472) Updated environment lockfiles (SciTools#467) Allow ESMF arguments to be passed (SciTools#396) Bump scitools/workflows from 2025.03.1 to 2025.03.2 (SciTools#471) Bump peter-evans/create-pull-request from 7.0.6 to 7.0.8 (SciTools#469) Bump scitools/workflows from 2025.02.2 to 2025.03.1 (SciTools#470) fix precomputed regridder save bug (SciTools#462) Add python 3.13 support, drop 3.10 (SciTools#464) Bump scitools/workflows from 2025.01.5 to 2025.02.2 (SciTools#463) ... # Conflicts: # esmf_regrid/esmf_regridder.py # esmf_regrid/experimental/io.py
2 parents fe42272 + 4c30ddb commit 06afc49

38 files changed

+1846
-1025
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
env:
33-
PY_VER: "3.10"
33+
PY_VER: "3.12"
3434
IRIS_TEST_DATA_LOC_PATH: benchmarks
3535
IRIS_TEST_DATA_PATH: benchmarks/iris-test-data
3636
IRIS_TEST_DATA_VERSION: "2.19"
@@ -42,7 +42,7 @@ jobs:
4242

4343
strategy:
4444
matrix:
45-
python-version: ["3.10"]
45+
python-version: ["3.12"]
4646

4747
steps:
4848
- name: "checkout"
@@ -68,7 +68,7 @@ jobs:
6868
.nox
6969
benchmarks/.asv/env
7070
$CONDA/pkgs
71-
key: ${{ runner.os }}-${{ hashFiles('requirements/') }}-${{ env.ENV_CACHE_BUILD }}-${{ env.IRIS_SOURCE }}
71+
key: ${{ runner.os }}-${{ hashFiles('requirements/locks/') }}-${{ env.ENV_CACHE_BUILD }}-${{ env.IRIS_SOURCE }}
7272

7373
- name: Benchmark script
7474
run: |

.github/workflows/ci-manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ concurrency:
2020
jobs:
2121
manifest:
2222
name: "check-manifest"
23-
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2024.10.3
23+
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2025.04.0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Checks if a PR makes any changes that ought to be shared via templating.
2+
# See the called workflow in the scitools/workflows repo for more details.
3+
4+
name: ci-template-check
5+
6+
on:
7+
pull_request_target:
8+
branches:
9+
- main
10+
11+
jobs:
12+
prompt-share:
13+
uses: scitools/workflows/.github/workflows/ci-template-check.yml@2025.04.0
14+
secrets: inherit
15+
with:
16+
pr_number: ${{ github.event.pull_request.number }}

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
fail-fast: false
4949
matrix:
5050
os: ["ubuntu-latest"]
51-
python-version: ["3.10", "3.11", "3.12"]
51+
python-version: ["3.11", "3.12", "3.13"]
5252
include:
5353
- python-version: "3.11"
5454
coverage: true
@@ -68,7 +68,7 @@ jobs:
6868
path: |
6969
.nox
7070
$CONDA/pkgs
71-
key: ${{ runner.os }}-${{ hashFiles('requirements/') }}-${{ env.ENV_CACHE_BUILD }}-${{ env.IRIS_SOURCE }}-${{ matrix.python-version }}
71+
key: ${{ runner.os }}-${{ hashFiles('requirements/locks/') }}-${{ env.ENV_CACHE_BUILD }}-${{ env.IRIS_SOURCE }}-${{ matrix.python-version }}
7272

7373
- name: Cache test data directory
7474
id: cache-test-data
@@ -99,7 +99,7 @@ jobs:
9999
nox --session tests -- --verbose
100100
101101
- name: Upload coverage report
102-
uses: codecov/codecov-action@v4
102+
uses: codecov/codecov-action@v5
103103
if: ${{ matrix.coverage }}
104104
with:
105105
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/ci-wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
strategy:
6868
fail-fast: false
6969
matrix:
70-
python-version: ["3.10", "3.11", "3.12"]
70+
python-version: ["3.11", "3.12", "3.13"]
7171
session: ["wheel"]
7272

7373
steps:
@@ -92,7 +92,7 @@ jobs:
9292
path: |
9393
.nox
9494
$CONDA/pkgs
95-
key: ${{ runner.os }}-${{ hashFiles('requirements/') }}-${{ env.ENV_CACHE_BUILD }}-${{ env.IRIS_SOURCE }}-${{ matrix.python-version }}
95+
key: ${{ runner.os }}-${{ hashFiles('requirements/locks/') }}-${{ env.ENV_CACHE_BUILD }}-${{ env.IRIS_SOURCE }}-${{ matrix.python-version }}
9696

9797
- name: "nox install and test wheel"
9898
env:

.github/workflows/refresh-lockfiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
private_key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
4343

4444
- name: create pull request
45-
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
45+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
4646
with:
4747
token: ${{ steps.generate-token.outputs.token }}
4848
commit-message: Updated environment lockfiles

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/stale@v9.0.0
13+
- uses: actions/stale@v9.1.0
1414
with:
1515
repo-token: ${{ secrets.GITHUB_TOKEN }}
1616
stale-issue-message: '@SciTools/esmf-regrid-devs This issue is stale due to a lack of activity in the last 180 days. Remove stale label or comment, otherwise this issue will close automatically in 14 days time.'

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ repos:
5151
- id: trailing-whitespace
5252

5353
- repo: https://github.com/astral-sh/ruff-pre-commit
54-
rev: "v0.4.4"
54+
rev: "v0.11.4"
5555
hooks:
5656
- id: ruff
5757
types: [file, python]
@@ -60,45 +60,45 @@ repos:
6060
types: [file, python]
6161

6262
- repo: https://github.com/codespell-project/codespell
63-
rev: "v2.2.6"
63+
rev: "v2.4.1"
6464
hooks:
6565
- id: codespell
6666
types_or: [asciidoc, python, markdown, rst]
6767
additional_dependencies: [tomli]
6868

6969
- repo: https://github.com/adamchainz/blacken-docs
70-
rev: 1.16.0
70+
rev: 1.19.1
7171
hooks:
7272
- id: blacken-docs
7373
types: [file, rst]
7474

7575
- repo: https://github.com/aio-libs/sort-all
76-
rev: v1.2.0
76+
rev: v1.3.0
7777
hooks:
7878
- id: sort-all
7979
types: [file, python]
8080

8181
- repo: https://github.com/pre-commit/mirrors-mypy
82-
rev: 'v1.10.0'
82+
rev: 'v1.15.0'
8383
hooks:
8484
- id: mypy
8585
exclude: 'noxfile\.py|docs/src/conf\.py|^benchmarks'
8686

8787
- repo: https://github.com/abravalheri/validate-pyproject
8888
# More exhaustive than Ruff RUF200.
89-
rev: "v0.18"
89+
rev: "v0.24.1"
9090
hooks:
9191
- id: validate-pyproject
9292

9393
- repo: https://github.com/scientific-python/cookie
94-
rev: 2024.04.23
94+
rev: 2025.01.22
9595
hooks:
9696
- id: sp-repo-review
9797
additional_dependencies: ["repo-review[cli]"]
9898
args: ["--show=errskip"]
9999

100100
- repo: https://github.com/numpy/numpydoc
101-
rev: v1.7.0
101+
rev: v1.8.0
102102
hooks:
103103
- id: numpydoc-validation
104104
types: [file, python]

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,40 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.12.1] - 2025-04-09
10+
11+
### Fixed
12+
13+
- [PR#486](https://github.com/SciTools/iris-esmf-regrid/pull/486)
14+
Fixed bug causing the esmf argument `pole_method` to be rejected.
15+
[@stephenworsley](https://github.com/stephenworsley)
16+
17+
- [PR#479](https://github.com/SciTools/iris-esmf-regrid/pull/479)
18+
Fixed bug which caused loading to be backwards incompatible.
19+
[@stephenworsley](https://github.com/stephenworsley)
20+
21+
## [0.12] - 2025-03-17
22+
23+
### Fixed
24+
25+
- [PR#462](https://github.com/SciTools/iris-esmf-regrid/pull/462)
26+
Fixed bug when saving regridders made with precomputed weights.
27+
[@stephenworsley](https://github.com/stephenworsley)
28+
29+
### Added
30+
31+
- [PR#464](https://github.com/SciTools/iris-esmf-regrid/pull/464)
32+
Add support for Python 3.13.
33+
[@stephenworsley](https://github.com/stephenworsley)
34+
- [PR#396](https://github.com/SciTools/iris-esmf-regrid/pull/396)
35+
Added controls for passing arguments to ESMF.
36+
[@stephenworsley](https://github.com/stephenworsley)
37+
38+
### Removed
39+
40+
- [PR#464](https://github.com/SciTools/iris-esmf-regrid/pull/464)
41+
Remove support for Python 3.10.
42+
[@stephenworsley](https://github.com/stephenworsley)
943

1044
## [0.11] - 2024-07-31
1145

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ prune benchmarks
1111
exclude codecov.yml
1212
prune docs
1313
recursive-include esmf_regrid *.py *.txt
14+
recursive-exclude esmf_regrid *.nc
1415
exclude noxfile.py
1516
prune requirements

0 commit comments

Comments
 (0)