Skip to content

Conversation

@aropie
Copy link

@aropie aropie commented Sep 10, 2025

Upgrade to numpy 2.0

We're looking into upgrading our main app to numpy 2.0, and since this library is a dependency we also need to update it.

  • Upgrade numpy to 2.3.0
  • Since we're upgrading numpy, we also need to update to pandas >= 2.3.2 which already supports numpy 2.0
  • Since pandas was upgraded, scikit-learn also needed upgrading.
  • Finally, bleeding edge library requires bleeding edge interpreters. Numpy 2.0 is only supported on Python >= 3.11, so that was also updated.
  • Some tests broke with the upgrade, so some changes were done so the tests would fail. All the test changes come directly from the original repo, which has more up-to-date dependencies, so tests that failed were changed to reflect their original source counterpart.

How to test

  • Create the venv and install dependencies: poetry install --all-extras,
  • Enter the venv: eval $(poetry env activate).
  • Run the test suite pytest.

@aropie aropie requested a review from gabeice September 10, 2025 20:17
@aropie aropie marked this pull request as ready for review September 10, 2025 20:17
@aropie aropie closed this Sep 12, 2025
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.

2 participants