Skip to content

TST: fix limited API example in tests for latest Cython#30703

Merged
charris merged 1 commit intonumpy:maintenance/2.4.xfrom
charris:backport-30698
Jan 21, 2026
Merged

TST: fix limited API example in tests for latest Cython#30703
charris merged 1 commit intonumpy:maintenance/2.4.xfrom
charris:backport-30698

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Jan 21, 2026

Backport of #30698.

Cython 3.3 will require a minimum target of 3.9 for the limited API. There is no reason for us to still test 3.6/3.7

Remove #define Py_LIMITED_API from a C source file, that's not a good habit and it requires manually keeping the version in sync between the C file and the meson.build file.

Also fix warnings like these:

WARNING: Project specifies no minimum version but uses features which were added in versions:
 * 1.3.0: {'limited_api arg in python.extension_module'}

by requiring a recent Meson version.

Cython 3.3 will require a minimum target of 3.9 for the limited API.
There is no reason for us to still test 3.6/3.7

Remove `#define Py_LIMITED_API` from a C source file, that's not a good
habit and it requires manually keeping the version in sync between
the C file and the meson.build file.

Also fix warnings like these:
```
WARNING: Project specifies no minimum version but uses features which were added in versions:
 * 1.3.0: {'limited_api arg in python.extension_module'}
```
by requiring a recent Meson version.
@charris charris added this to the 2.4.2 release milestone Jan 21, 2026
@charris charris added 05 - Testing 08 - Backport Used to tag backport PRs labels Jan 21, 2026
@charris charris merged commit ae6549b into numpy:maintenance/2.4.x Jan 21, 2026
72 checks passed
@charris charris deleted the backport-30698 branch January 21, 2026 23:33
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