Skip to content

Numpy 2x upgrade#2624

Merged
aclegg3 merged 7 commits intomainfrom
numpy-2x-upgrade
Feb 24, 2026
Merged

Numpy 2x upgrade#2624
aclegg3 merged 7 commits intomainfrom
numpy-2x-upgrade

Conversation

@aclegg3
Copy link
Contributor

@aclegg3 aclegg3 commented Feb 23, 2026

Motivation and Context

Upgrade numpy to v2+

How Has This Been Tested

CI should pass

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

- numpy: ==1.26.4 → >=2.0.0,<2.4
- numba: unversioned → >=0.60.0 (supports numpy 2.x)
- numpy-quaternion: unversioned → >=2024.0.0 (supports numpy 2.x)
- scipy: >=1.10.1 → >=1.13.0 (supports numpy 2.x)
- .github/workflows/install_and_test.yml: numpy==1.26.4 → numpy>=2.0.0,<2.4
- conda-build/habitat-sim/meta.yaml:
  - numpy>=1.13 → numpy>=2.0.0,<2.4
  - numba: unversioned → >=0.60.0
  - quaternion: unversioned → >=2024.0.0
  - scipy>=1.3.0 → scipy>=1.13.0
@aclegg3 aclegg3 requested a review from jturner65 February 23, 2026 20:06
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 23, 2026
numpy 2.x requires Python 3.10+, update python_lint job from 3.9.16 to 3.12
Quote numpy>=2.0.0,<2.4 to prevent shell from interpreting <2.4 as a redirect
The habitat_sim.logging module intentionally shadows the builtin logging
module. Add noqa comment to suppress the flake8-builtins warning.
numpy 2.x requires Python 3.10+, update mypy target version to match.
CI uses Python 3.12, and newer sphinx/pytest require 3.12 type syntax.
Update mypy target version from 3.10 to 3.12 to match.
@aclegg3 aclegg3 merged commit 3da90e2 into main Feb 24, 2026
7 checks passed
@aclegg3 aclegg3 deleted the numpy-2x-upgrade branch February 24, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant