Skip to content

Conversation

@hameerabbasi
Copy link
Collaborator

No description provided.

@hameerabbasi hameerabbasi linked an issue May 17, 2024 that may be closed by this pull request
@codecov
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.10%. Comparing base (cb6b604) to head (41994a3).
Report is 40 commits behind head on main.

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     

@hameerabbasi hameerabbasi enabled auto-merge (squash) May 17, 2024 09:16
@hameerabbasi hameerabbasi requested a review from mtsokol May 17, 2024 09:16
Copy link
Collaborator

@mtsokol mtsokol left a 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.

@hameerabbasi
Copy link
Collaborator Author

hameerabbasi commented May 17, 2024

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

Successfully installed llvmlite-0.43.0rc1 numba-0.60.0rc1 numpy-2.0.0rc2

@hameerabbasi hameerabbasi merged commit 669d423 into pydata:main May 17, 2024
@hameerabbasi hameerabbasi deleted the numpy-20-ci branch May 17, 2024 09:28
hameerabbasi added a commit that referenced this pull request May 17, 2024
* 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(...)`.
hameerabbasi added a commit that referenced this pull request May 17, 2024
* 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(...)`.
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.

NumPy 2.0 support

2 participants