Drop Python 3.9; test on Python 3.13; drop NumPy 1.21; skip CUDA install#304
Drop Python 3.9; test on Python 3.13; drop NumPy 1.21; skip CUDA install#304ev-br merged 13 commits intodata-apis:mainfrom
Conversation
| - 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.
Do not advertise what you don't test.
| - `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.
Do not advertise what you don't test. Also helplessly obsolete; we know for sure that less than 2024.9.0 won't work.
| [project.optional-dependencies] | ||
| cupy = ["cupy"] | ||
| dask = ["dask"] | ||
| dask = ["dask>=2024.9.0"] |
There was a problem hiding this comment.
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).
| # much older versions of NumPy than what SPEC0 recommends. | ||
| numpy = ["numpy>=1.22"] | ||
| pytorch = ["torch"] | ||
| sparse = ["sparse>=0.15.1"] |
numpy-1-22-xfails.txt
Outdated
| 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.
This seems to crop up only when the test is run on its own
There was a problem hiding this comment.
| 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.
Tested these and could reproduce none of the core dumps
There was a problem hiding this comment.
Can't say I fancy chasing segfaults down the line. OTOH we won't be able to remove these skips otherwise, so OK, let's live dangerously and see if these reappear.
| 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.
Could reproduce none of these
|
@ev-br ready for review |
This reverts commit 3bc8ffa.
ev-br
left a comment
There was a problem hiding this comment.
Removing skips which are claimed to have caused segfaults feels a bit dangerous; let's give it a shot and see if segfaults reappear.
The rest is great, thank you @crusaderky
| # NumPy 1.22 doesn't support NPY_PROMOTION_STATE=weak, so many tests fail with | ||
| # type promotion issues | ||
| # NOTE: some of these may not fail until one runs array-api-tests with | ||
| # --max-examples 100000 |
There was a problem hiding this comment.
Huh, this is really trying hard to fish these out :-)
| 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.
Can't say I fancy chasing segfaults down the line. OTOH we won't be able to remove these skips otherwise, so OK, let's live dangerously and see if these reappear.
Follow-up from #266
scikit-learnminimumscikit-learn(closes Drop Python 3.9 #230)--max-examples 100000on NumPy 1.22--max-examples 1000on all other numpy versions