Skip to content

Commit

Permalink
Pin numpy<2.0.0 (#178)
Browse files Browse the repository at this point in the history
* Add new Python versions to testing matrix

* Pin numpy in environment-ci.yml

There are still a few incompatibilities with numpy 2.0.0, so we'll pin
the previous version for the moment. In particular, xESMF regridders
can't handle large grids with a number of points that overflows a
32-bit integer.

* Pin numpy<2.0.0 in pyproject.toml

* Remove Python 3.11 from testing

For some reason it seems to hang indefinitely. We'll just disable it
for the moment (3.12 works, anyway).
  • Loading branch information
angus-g authored Jul 1, 2024
1 parent dcca341 commit 578590f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions environment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ channels:
- conda-forge
dependencies:
- esmpy
- numpy<2.0.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"dask[array]",
"dask[distributed]",
"netCDF4",
"numpy >= 1.17.0",
"numpy >= 1.17.0, < 2.0.0",
"scipy >= 1.2.0",
"xarray",
"xesmf >= 0.8.4",
Expand Down

0 comments on commit 578590f

Please sign in to comment.