From 0e9c6a7a05e6589803ba8bf504e341a39ba753d1 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 2 Aug 2024 15:12:00 +0200 Subject: [PATCH 1/3] build free-threaded wheels in cibuildwheel --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 9118c8e93..f5b1d3f25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,6 +143,7 @@ search = '__version__: str = "{current_version}"' [tool.cibuildwheel] build-verbosity = "1" +free-threaded-support = true test-requires = ["pytest", "importlib_metadata"] test-command = "pytest -vsx {package}/tools/test_wheel.py" From 25477cc1a3e8b49d809f0951a492c9e20fd0757f Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 2 Aug 2024 15:34:33 +0200 Subject: [PATCH 2/3] get prerelease cython for free-threaded wheels --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f5b1d3f25..82addff75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -193,3 +193,7 @@ manylinux-i686-image = "manylinux2010" # note: manylinux_2_28 builds are added # in .github/workflows/wheels.yml + +[[tool.cibuildwheel.overrides]] +select = "cp313t-*" +build-frontend = "pip; args: -v --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" From 343db998596c905a2d4a9a6272360c61237cdf87 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 2 Aug 2024 16:07:40 +0200 Subject: [PATCH 3/3] skip free-threaded on Windows --- .github/workflows/wheels.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5bfe9804e..f9ff3edbb 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -116,6 +116,8 @@ jobs: architecture: x86 cibw: build: "cp*win32" + # free-threaded doesn't seem to work on Windows + skip: "*t-win*" - os: windows-2019 name: win-pypy @@ -128,6 +130,8 @@ jobs: architecture: x64 cibw: build: "cp*win_amd64" + # free-threaded doesn't seem to work on Windows + skip: "*t-win*" - os: windows-2022 name: win_arm64 @@ -135,6 +139,8 @@ jobs: cibw: arch: ARM64 skip: "cp37*" + # free-threaded doesn't seem to work on Windows + skip: "*t-win*" steps: - uses: actions/checkout@v4