Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ Changelog
=========


Unreleased
----------

- Enable thread-free wheels for Python 3.13 and 3.14.
- Enable PYPY 3.11 wheels.


2025.11.0 (2025-11-02)
----------------------

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ build-backend = "setuptools.build_meta"
# configuration below.
enable = ["all"]
# See https://cibuildwheel.pypa.io/en/stable/options/#build-skip
# Not sure why it was failing on PyPy 3.11.
build = "cp38-* pp310-*"
build = "cp38-* pp310-* pp311-* cp313t-* cp314t-*"
39 changes: 27 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import sys
import sysconfig

from setuptools import Extension, setup
from Cython.Build import cythonize

Expand All @@ -11,17 +14,29 @@
# 0x030B0000 - Python 3.11 - support typed memoryviews.
# 0x030C0000 - Python 3.12 - support vectorcall (performance improvement).

py_limited_api_kwargs = {}
bdist_wheel_kwargs = {}
if sys.implementation.name == "cpython" and not sysconfig.get_config_var(
"Py_GIL_DISABLED"
):
py_limited_api_kwargs = {
"define_macros": [
# For now we are at python 3.8 as we still support 3.10.
("Py_LIMITED_API", 0x03080000),
],
"py_limited_api": True,
}
bdist_wheel_kwargs = {"py_limited_api": "cp38"}

setup(
ext_modules=cythonize([
Extension(
name="raiser",
sources=["cython_test_exception_raiser/raiser.pyx"],
define_macros=[
# For now we are at python 3.8 as we still support 3.10.
("Py_LIMITED_API", 0x03080000),
],
py_limited_api=True
),
]),
options={"bdist_wheel": {"py_limited_api": "cp38"}},
ext_modules=cythonize(
[
Extension(
name="raiser",
sources=["cython_test_exception_raiser/raiser.pyx"],
**py_limited_api_kwargs
),
]
),
options={"bdist_wheel": {**bdist_wheel_kwargs}},
)