Skip to content
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 #79

Merged
merged 9 commits into from
Jan 18, 2024
Merged

Add support for NumPy 2.0 #79

merged 9 commits into from
Jan 18, 2024

Conversation

asmeurer
Copy link
Member

Fixes #77

@asmeurer asmeurer mentioned this pull request Jan 17, 2024
@asmeurer
Copy link
Member Author

OK, it looks like this is working. This is ready for review. Then I can double check the cupy tests and cut a release.

@rgommers
Copy link
Member

Two CI failures:

  • It looks like array-api-tests-numpy-dev / tests (3.8) needs skipping, since Python 3.8 is too old - that job only picks up numpy 1.24.
  • The other failure is a one-off failure for a __ne__ test due to hypothesis non-reproducibility (could be ignored)

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All LGTM, thanks Aaron!

I added a few comments that may be worth checking and tweaking the comments for for future reference. None are blocking though.

array_api_tests/test_has_names.py::test_has_names[array_attribute-device]

# linalg tests require https://github.com/data-apis/array-api-tests/pull/101
# cleanups. Also some tests are using .mT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ndarray.mT exists now. not sure if this test still needs skipping, or only this part of the comment needs to be removed?


# Array methods and attributes not already on np.ndarray cannot be wrapped
array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__]
array_api_tests/test_signatures.py::test_array_method_signature[to_device]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About to land: numpy/numpy#25233

array_api_tests/test_linalg.py::test_solve

# Array methods and attributes not already on np.ndarray cannot be wrapped
array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method exists already for a few weeks, and I just merged what's probably the fix to make this test pass: numpy/numpy#25595

@asmeurer
Copy link
Member Author

I guess the nightly builds are lagged. Going to just merge this now to avoid further delay.

@asmeurer asmeurer merged commit 7ab1879 into data-apis:main Jan 18, 2024
19 of 22 checks passed
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.

Support for NumPy 2.0
2 participants