From ee076194e31406123adf53ede098d8aef9fa9d84 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Fri, 16 Jan 2026 01:37:51 -0500 Subject: [PATCH] Build cp314t and cp310 along with limited wheels --- .github/workflows/smoke.yml | 2 ++ .github/workflows/tests.yml | 2 +- pyproject.toml | 3 ++- setup.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index fa78a285c..218e36241 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -7,12 +7,14 @@ on: - '**.md' - '**.rst' - '**.txt' + - '.github/workflows/tests.yml' pull_request: branches: main paths-ignore: - '**.md' - '**.rst' - '**.txt' + - '.github/workflows/tests.yml' jobs: style: runs-on: ubuntu-slim diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ca29cb4b3..e151e3c56 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,7 +62,7 @@ jobs: CIBW_ENVIRONMENT_MACOS: PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig LDFLAGS=-headerpad_max_install_names CIBW_ENVIRONMENT_WINDOWS: INCLUDE=C:\\cibw\\vendor\\include LIB=C:\\cibw\\vendor\\lib PYAV_SKIP_TESTS=unicode_filename CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: delvewheel repair --add-path C:\cibw\vendor\bin -w {dest_dir} {wheel} - CIBW_SKIP: "pp* cp312* cp313* cp314*" + CIBW_BUILD: "cp310* cp311* cp314t*" CIBW_TEST_COMMAND: mv {project}/av {project}/av.disabled && python -m pytest {package}/tests && mv {project}/av.disabled {project}/av CIBW_TEST_REQUIRES: pytest numpy run: | diff --git a/pyproject.toml b/pyproject.toml index 7ab4ae2ae..24bdc90a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ authors = [ {name = "WyattBlue", email = "wyattblue@auto-editor.com"}, {name = "Jeremy Lainé", email = "jeremy.laine@m4x.org"}, ] -requires-python = ">=3.11" +requires-python = ">=3.10" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", @@ -20,6 +20,7 @@ classifiers = [ "Operating System :: Unix", "Operating System :: Microsoft :: Windows", "Programming Language :: Cython", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", diff --git a/setup.py b/setup.py index 9be9acb27..0e00f9873 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ "swresample", ] -if sys.implementation.name == "cpython": +if sys.implementation.name == "cpython" and (3, 14) > sys.version_info > (3, 11): py_limited_api = True options = {"bdist_wheel": {"py_limited_api": "cp311"}} define_macros = [("Py_LIMITED_API", 0x030B0000)]