Skip to content

Commit e206ed9

Browse files
committed
ENH: Compile free-threading wheels
1 parent 4ca3db0 commit e206ed9

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
BUILDKIT_PROGRESS: plain
147147

148148
- name: Build wheels
149-
uses: pypa/cibuildwheel@v3.0.1
149+
uses: pypa/cibuildwheel@v3.1.3
150150

151151
- uses: actions/upload-artifact@v4
152152
with:
@@ -229,7 +229,7 @@ jobs:
229229
path: ${{ matrix.vcpkg_logs }}
230230

231231
- name: Build wheels
232-
uses: pypa/cibuildwheel@v3.0.1
232+
uses: pypa/cibuildwheel@v3.1.3
233233
env:
234234
# CIBW needs to know triplet for the correct install path
235235
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}

ci/manylinux2014_x86_64-vcpkg-gdal.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/pypa/manylinux2014_x86_64:2025-01-11-3165879
1+
FROM quay.io/pypa/manylinux2014_x86_64:2025.07.27-1
22

33
# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988)
44
RUN yum install -y curl unzip zip tar perl-IPC-Cmd

ci/manylinux_2_28_aarch64-vcpkg-gdal.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/pypa/manylinux_2_28_aarch64:2025-01-11-3165879
1+
FROM quay.io/pypa/manylinux_2_28_aarch64:2025.07.27-1
22

33
# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988)
44
RUN dnf -y install curl zip unzip tar ninja-build perl-IPC-Cmd

ci/manylinux_2_28_x86_64-vcpkg-gdal.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/pypa/manylinux_2_28_x86_64:2025-01-11-3165879
1+
FROM quay.io/pypa/manylinux_2_28_x86_64:2025.07.27-1
22

33
# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988)
44
RUN dnf -y install curl zip unzip tar ninja-build perl-IPC-Cmd

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools",
4-
"Cython>=0.29",
4+
"Cython>=3.1",
55
"versioneer[toml]==0.28",
66
# tomli is used by versioneer
77
"tomli; python_version < '3.11'",
@@ -26,12 +26,13 @@ classifiers = [
2626
"Operating System :: OS Independent",
2727
"Programming Language :: Python :: 3",
2828
"Topic :: Scientific/Engineering :: GIS",
29+
"Programming Language :: Python :: Free Threading :: 2 - Beta",
2930
]
3031
requires-python = ">=3.9"
3132
dependencies = ["certifi", "numpy", "packaging"]
3233

3334
[project.optional-dependencies]
34-
dev = ["cython"]
35+
dev = ["cython>=3.1"]
3536
test = ["pytest", "pytest-cov"]
3637
benchmark = ["pytest-benchmark"]
3738
geopandas = ["geopandas"]
@@ -41,11 +42,12 @@ Home = "https://pyogrio.readthedocs.io/"
4142
Repository = "https://github.com/geopandas/pyogrio"
4243

4344
[tool.cibuildwheel]
44-
skip = ["pp*", "*musllinux*"]
45+
skip = ["*musllinux*"]
4546
archs = ["auto64"]
4647
manylinux-x86_64-image = "manylinux-x86_64-vcpkg-gdal:latest"
4748
manylinux-aarch64-image = "manylinux-aarch64-vcpkg-gdal:latest"
4849
build-verbosity = 3
50+
enable = ["cpython-freethreading"]
4951

5052
[tool.cibuildwheel.linux.environment]
5153
VCPKG_INSTALL = "$VCPKG_INSTALLATION_ROOT/installed/$VCPKG_DEFAULT_TRIPLET"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_gdal_config():
169169
Extension("pyogrio._ogr", ["pyogrio/_ogr.pyx"], **ext_options),
170170
Extension("pyogrio._vsi", ["pyogrio/_vsi.pyx"], **ext_options),
171171
],
172-
compiler_directives={"language_level": "3"},
172+
compiler_directives={"language_level": "3", "freethreading_compatible": True},
173173
compile_time_env=compile_time_env,
174174
)
175175

0 commit comments

Comments
 (0)