Skip to content

TST: add tests for stable ABI numpy extensions (#31822) - #31900

Merged
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-31822
Jul 7, 2026
Merged

TST: add tests for stable ABI numpy extensions (#31822)#31900
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-31822

Conversation

@charris

@charris charris commented Jul 7, 2026

Copy link
Copy Markdown
Member

Backport of #31822.

PR summary

This PR adds tests for stable ABI extensions compiled with numpy C-API as well as cython API.
limited_api.c is used as a template and parameterized by MODULE_NAME for every combination of Python abi3 version and NumPy target version. Same is done for limited_api_cython where cython extension is tested against every combination of Python abi3 version and NumPy target version. I've expanded tests to cover the datetime APIs which was broken recently to avoid such future breakages.

The failing MSVC test on x86 is because of #31762 which is now detected as a failure.

AI Disclosure

I used Claude to work on this.

PR summary

This PR adds tests for stable ABI extensions compiled with numpy C-API as well as cython API.
limited_api.c is used as a template and parameterized by MODULE_NAME for every combination of Python abi3 version and NumPy target version. Same is done for limited_api_cython where cython extension is tested against every combination of Python abi3 version and NumPy target version. I've expanded tests to cover the datetime APIs which was broken recently to avoid such future breakages.

The failing MSVC test on x86 is because of #31762 which is now detected as a failure.

AI Disclosure

I used Claude to work on this.

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
@charris charris added this to the 2.5.2 release milestone Jul 7, 2026
@charris charris added 05 - Testing 08 - Backport Used to tag backport PRs labels Jul 7, 2026
@charris
charris merged commit a13a219 into numpy:maintenance/2.5.x Jul 7, 2026
83 checks passed
@charris
charris deleted the backport-31822 branch July 7, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

05 - Testing 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants