-
Notifications
You must be signed in to change notification settings - Fork 33
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
Drop Python 3.9; test on Python 3.13; drop NumPy 1.21; skip CUDA install #304
base: main
Are you sure you want to change the base?
Conversation
@@ -100,8 +95,6 @@ version. | |||
- As with NumPy, type annotations and positional-only arguments may not | |||
exactly match the spec for functions that are not wrapped at all. | |||
|
|||
The minimum supported PyTorch version is 1.13. |
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.
Do not advertise what you don't test.
@@ -131,8 +124,6 @@ For `linalg`, several methods are missing, for example: | |||
- `matrix_rank` | |||
Other methods may only be partially implemented or return incorrect results at times. | |||
|
|||
The minimum supported Dask version is 2023.12.0. |
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.
Do not advertise what you don't test. Also helplessly obsolete; we know for sure that less than 2024.9.0 won't work.
@@ -24,11 +23,14 @@ classifiers = [ | |||
|
|||
[project.optional-dependencies] | |||
cupy = ["cupy"] | |||
dask = ["dask"] | |||
dask = ["dask>=2024.9.0"] |
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.
It may be a good idea to completely remove all mentions of minimum versions until we have unit tests in place for them (i.e. not anytime soon).
numpy = ["numpy"] | ||
# Note: array-api-compat follows scikit-learn minimum dependencies, which support | ||
# much older versions of NumPy than what SPEC0 recommends. | ||
numpy = ["numpy>=1.22"] | ||
pytorch = ["torch"] | ||
sparse = ["sparse>=0.15.1"] |
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.
same.
numpy-1-22-xfails.txt
Outdated
# attributes are np.float32 instead of float | ||
# (see also https://github.com/data-apis/array-api/issues/405) | ||
array_api_tests/test_data_type_functions.py::test_finfo[float32] | ||
array_api_tests/test_data_type_functions.py::test_finfo[complex64] | ||
|
||
# Rounding error near infinity | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_clip |
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.
This seems to crop up only when the test is run on its own
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.
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__imod__(x1, x2)] | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__mod__(x, s)] | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__mod__(x1, x2)] | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[remainder(x1, x2)] |
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.
Tested these and could reproduce none of the core dumps
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__imod__(x1, x2)] | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__mod__(x, s)] | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__mod__(x1, x2)] | ||
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[remainder(x1, x2)] |
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.
Could reproduce none of these
@ev-br ready for review |
This reverts commit 3bc8ffa.
Follow-up from #266
scikit-learn
minimumscikit-learn
(closes Drop Python 3.9 #230)--max-examples 100000
on NumPy 1.22--max-examples 1000
on all other numpy versions