Skip to content

Commit 12cdb6e

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

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
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:

pyproject.toml

Lines changed: 4 additions & 2 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"]
@@ -46,6 +47,7 @@ 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)