Skip to content

[CHORE] Upgrade numpy constraint to allow >=2.0 #186

Description

@MarcelRosier

Reason

numpy = "^1.23.0" (caret syntax) caps numpy at <2.0.0. All transitive dependencies already support numpy 2.x:

Dependency Version numpy constraint
antspyx 0.6.3 <2.4.0
simpleitk 2.5.6 unpinned (abi3)
scipy 1.14.1 <2.3
brainles_hd_bet 0.0.11 >=1.24.0
nibabel 5.2.1 unpinned

No code changes needed — the codebase uses only stable numpy APIs unaffected by 2.0 breaking changes.

Needed changes

  1. pyproject.toml:54 — relax numpy: "^1.23.0"">=1.23.0"
  2. pyproject.toml:53 — tighten nibabel lower bound: ">=3.2.1"">=5.0.0"

Nibabel added numpy 2.0 support in 5.0.0. The bump does not raise any lower bounds in disguise — nibabel 5.0.0 requires only Python >=3.8 and numpy >=1.19, both well below existing constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions