Skip to content

Constrain regionmask >=0.11.0 for numpy 2.0 compatibility #838

Merged
tomvothecoder merged 1 commit into
mainfrom
devops/837-regionmask-np-2
Jun 22, 2026
Merged

Constrain regionmask >=0.11.0 for numpy 2.0 compatibility #838
tomvothecoder merged 1 commit into
mainfrom
devops/837-regionmask-np-2

Conversation

@tomvothecoder

@tomvothecoder tomvothecoder commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

If applicable:

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass with my changes (locally and CI/CD build)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have noted that this is a breaking change for a major release (fix or feature that would cause existing functionality to not work as expected)

- Ensures compatible version of `regionmask` is picked up with `numpy>2.0`
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (baf02ae) to head (fa79129).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.0 to the runtime dependencies in pyproject.toml.
  • Pin regionmask >=0.11.0 in 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 thread pyproject.toml
Comment on lines 31 to 35
"pandas",
"pooch >=1.8",
"python-dateutil",
"regionmask",
"regionmask >=0.11.0",
"scipy",
@tomvothecoder tomvothecoder changed the title Constrain regionmask >=0.11.0 to ensure numpy >=2.0 support Update regionmask >=0.11.0 and xarray >=2026.01.0 constraints Jun 22, 2026
@tomvothecoder
tomvothecoder force-pushed the devops/837-regionmask-np-2 branch from fe667b8 to fa79129 Compare June 22, 2026 18:29
@tomvothecoder tomvothecoder changed the title Update regionmask >=0.11.0 and xarray >=2026.01.0 constraints Constrain regionmask >=0.11.0 to ensure numpy 2.0 compatibility Jun 22, 2026
@tomvothecoder tomvothecoder changed the title Constrain regionmask >=0.11.0 to ensure numpy 2.0 compatibility Constrain regionmask >=0.11.0 for numpy 2.0 compatibility Jun 22, 2026
@tomvothecoder
tomvothecoder merged commit f53aafe into main Jun 22, 2026
11 checks passed
@tomvothecoder tomvothecoder moved this from Todo to Done in xCDAT Development Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: devops Testing, CI/CD, systems configuration

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: conda solver picks numpy-2-incompatible regionmask 0.4.0 alongside xcdat in some envs

2 participants