Skip to content

chore: relax numpy constraint to allow >=2.0 - #187

Merged
MarcelRosier merged 1 commit into
mainfrom
chore/numpy-2.0-support
Aug 9, 2026
Merged

chore: relax numpy constraint to allow >=2.0#187
MarcelRosier merged 1 commit into
mainfrom
chore/numpy-2.0-support

Conversation

@MarcelRosier

Copy link
Copy Markdown
Collaborator

Closes #186

Changes

  • Relax numpy from ^1.23.0>=1.23.0 to allow numpy 2.x
  • Tighten nibabel from >=3.2.1>=5.0.0 (numpy 2.0 support added in nibabel 5.0.0)

Rationale

All transitive dependencies already support numpy 2.x. See #186 for the full compatibility matrix. No code changes needed — the codebase uses only stable numpy APIs.

Copilot AI lite review requested due to automatic review settings August 8, 2026 18:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates dependency constraints to permit installing NumPy 2.x while ensuring nibabel is new enough to support NumPy 2.

Changes:

  • Relax numpy constraint from ^1.23.0 to >=1.23.0.
  • Increase nibabel minimum version from >=3.2.1 to >=5.0.0 for NumPy 2 support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pyproject.toml
@neuronflow
neuronflow requested a balanced review from Copilot August 9, 2026 06:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MarcelRosier
MarcelRosier merged commit ef7c7ba into main Aug 9, 2026
6 checks passed
@MarcelRosier
MarcelRosier deleted the chore/numpy-2.0-support branch August 9, 2026 08:59
MarcelRosier added a commit to BrainLesion/BraTS that referenced this pull request Aug 9, 2026
brainles_preprocessing 0.6.13 drops its numpy<2.0 pin, so the
interim < 3.13 workaround is no longer needed. Python 3.13 users
can now install the preprocessing extra with numpy 2.x.

Refs: BrainLesion/preprocessing#187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE] Upgrade numpy constraint to allow >=2.0

3 participants