Constrain regionmask >=0.11.0 for numpy 2.0 compatibility #838
Merged
Conversation
- Ensures compatible version of `regionmask` is picked up with `numpy>2.0`
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #838 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 1989 1989
=========================================
Hits 1989 1989 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Updates xCDAT’s dependency constraints to avoid installing NumPy-2-incompatible regionmask versions, addressing import failures caused by older regionmask releases.
Changes:
- Add
regionmask >=0.11.0to the runtime dependencies inpyproject.toml. - Pin
regionmask >=0.11.0in the dev and CI conda environment definitions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pyproject.toml | Constrains regionmask minimum version in PyPI/runtime metadata. |
| conda-env/dev.yml | Pins regionmask minimum version for the development conda environment. |
| conda-env/ci.yml | Pins regionmask minimum version for the CI conda environment. |
Comment on lines
31
to
35
| "pandas", | ||
| "pooch >=1.8", | ||
| "python-dateutil", | ||
| "regionmask", | ||
| "regionmask >=0.11.0", | ||
| "scipy", |
regionmask >=0.11.0 and xarray >=2026.01.0 constraints
tomvothecoder
force-pushed
the
devops/837-regionmask-np-2
branch
from
June 22, 2026 18:29
fe667b8 to
fa79129
Compare
regionmask >=0.11.0 and xarray >=2026.01.0 constraintsregionmask >=0.11.0 to ensure numpy 2.0 compatibility
regionmask >=0.11.0 to ensure numpy 2.0 compatibility regionmask >=0.11.0 for numpy 2.0 compatibility
This was referenced Jun 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Checklist
If applicable: