-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add support for NumPy 2.0. #681
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #681 +/- ##
==========================================
- Coverage 90.21% 90.10% -0.11%
==========================================
Files 20 22 +2
Lines 3670 3731 +61
==========================================
+ Hits 3311 3362 +51
- Misses 359 369 +10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we merge it once NumPy 2.0(rc) is ran in the --pre
job?
In logs I see that it's still 1.x: https://github.com/pydata/sparse/actions/runs/9125700838/job/25092447467?pr=681#step:6:160
Installing collected packages: numpy, llvmlite, numba
Attempting uninstall: numpy
Found existing installation: numpy 1.26.4
Uninstalling numpy-1.26.4:
Successfully uninstalled numpy-1.26.4
Attempting uninstall: llvmlite
Found existing installation: llvmlite 0.42.0
Uninstalling llvmlite-0.42.0:
Successfully uninstalled llvmlite-0.42.0
Attempting uninstall: numba
Found existing installation: numba 0.59.1
Uninstalling numba-0.59.1:
Successfully uninstalled numba-0.59.1
It doesn't add/test support for NumPy 2.0 yet.
Right -- we first install 1.x and then update. You're seeing the lines for the initial install: https://github.com/pydata/sparse/actions/runs/9125700838/job/25092447467?pr=681#step:6:171
|
* Add support for NumPy 2.0. * Avoid using private NumPy API. * Allow for `OverflowError` in `can_store`. * Replace `np.array(..., copy=False)` with `np.asarray(...)`.
* Add support for NumPy 2.0. * Avoid using private NumPy API. * Allow for `OverflowError` in `can_store`. * Replace `np.array(..., copy=False)` with `np.asarray(...)`.
No description provided.