Skip to content

Commit 7479e90

Browse files
committed
Enable free-threading
1 parent 64e6214 commit 7479e90

File tree

6 files changed

+7
-2
lines changed

6 files changed

+7
-2
lines changed

.github/workflows/dist-python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- [ubuntu-24.04, manylinux_aarch64]
4040
- [macos-14, macosx_*]
4141
- [windows-2019, win_amd64]
42-
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
42+
python: ["cp39", "cp310", "cp311", "cp312", "cp313", "cp313t"]
4343
exclude:
4444
- buildplat: [macos-14, macosx_*]
4545
python: "cp39"
@@ -85,6 +85,7 @@ jobs:
8585
env:
8686
MACOS_TEST_SKIP: "*arm64"
8787
CIBW_BUILD: cp39-macosx_*
88+
CIBW_ENABLE: cpython-freethreading
8889
MACOSX_DEPLOYMENT_TARGET: "10.14"
8990
run: python -m cibuildwheel --output-dir wheelhouse
9091

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
strategy:
3838
matrix:
3939
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
40-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
40+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13t"]
4141
fail-fast: false
4242
name: CPython ${{ matrix.python-version }}-${{ matrix.os }}
4343
steps:

bindings/python/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Changes in Version 1.8.0 (2025/MM/YY)
77

88
- Add support for PyArrow 20.0.
9+
- Add support for free-threaded python.
910

1011
# Changes in Version 1.7.2 (2025/04/23)
1112

bindings/python/pymongoarrow/lib.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Cython compiler directives
1616
# distutils: language=c++
1717
# cython: language_level=3
18+
# cython: freethreading_compatible = True
1819

1920
# Stdlib imports
2021
import sys

bindings/python/pymongoarrow/libarrow.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Cython compiler directives
1616
# cython: language_level=3
1717
# distutils: language=c++
18+
# cython: freethreading_compatible = True
1819
from libcpp.vector cimport vector
1920
from libc.stdint cimport int32_t, uint8_t
2021
from pyarrow.lib cimport *

bindings/python/pymongoarrow/libbson.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Cython compiler directives
1616
# cython: language_level=3
1717
# distutils: language=c
18+
# cython: freethreading_compatible = True
1819
from libc.stdint cimport int32_t, int64_t, uint8_t, uint32_t, uint64_t
1920

2021

0 commit comments

Comments
 (0)