-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NumPy 2.0 support #521
Comments
As Numcodecs has relied primarily on the Python Buffer Protocol and not really used NumPy's C API, this shouldn't involve rebuilding Numcodecs. Have just searched through the code to reconfirm this The thing to check for would be if Numcodecs is affected by any NumPy Python API breaks. This could be done by adding it to CI here |
FWIW attempted running the test suite locally with NumPy 2.0.0rc1 from conda-forge and it appeared to pass. So doesn't look like any changes are needed Still would be good to add to CI |
We do have an optional dependency on zfpy Lines 66 to 68 in 4abe4be
zfpy still needs to do some work to migrate: LLNL/zfp#210 However this just means users won't be able to install zfpy until that is resolved. No impact on installing Numcodecs itself |
It might be worth doing a release with the |
👍 Certainly what is happening in several other of my repos. |
Didn't @jakirkham confirm above already that everything works as expected for The linked PR (gh-535) only shows test failures because of |
👍 without |
Yep all we needed was CI. Thanks for adding that! 🙏 NumPy 2 support in |
NumPy 2.0 is coming out soon ( numpy/numpy#24300 ). NumPy 2.0.0rc1 packages for conda & wheels came out 3 weeks back ( numpy/numpy#24300 (comment) )
To prepare for NumPy 2.0, it might be worthwhile to start testing against NumPy 2 in CI
NumPy has put out a migration guide. More details are in the release notes
If Numcodecs make use of NumPy's C API (and produces wheels that use it), having a release of Numcodecs with wheels built against NumPy 2.0.0rc1 would be helpful to ensure NumPy 1 & 2 compatible wheels (as wheels built against NumPy 1 won't be compatible with NumPy 2). More details in this NumPy 2 ABI doc
Also as NumPy is tracking ecosystem support for NumPy 2.0, it would be helpful to share Numcodecs current support status in issue (with any plans): numpy/numpy#26191
The text was updated successfully, but these errors were encountered: