Skip to content

Commit 5a30db2

Browse files
committed
enable free threading
1 parent b537905 commit 5a30db2

File tree

9 files changed

+22
-2
lines changed

9 files changed

+22
-2
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
---------
33

4+
[3.15.0] - 2025-10-30
5+
^^^^^^^^^^^^^^^^^^^^^
6+
7+
Changed
8+
~~~~~~~
9+
* upgrade to ``Cython==3.1.6``
10+
* enable free threading
11+
412
[3.14.1] - 2025-09-08
513
^^^^^^^^^^^^^^^^^^^^^
614
Fixed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"scikit-build-core>=0.11",
4-
"Cython >=3.0.12, <3.2.0"
4+
"Cython >=3.1.6, <3.2.0"
55
]
66
build-backend = "scikit_build_core.build"
77

src/rapidfuzz/_feature_detector_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#cython: freethreading_compatible = True
2+
13
from libc.stdint cimport uint32_t
24

35
cdef extern from "FeatureDetector/CpuInfo.hpp":

src/rapidfuzz/distance/_initialize_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#cython: freethreading_compatible = True
2+
13
from cpp_common cimport EditType, RfEditOp, RfOpcode, convert_string, is_valid_string
24
from cpython.list cimport PyList_New, PyList_SET_ITEM
35
from cpython.pycapsule cimport PyCapsule_GetPointer, PyCapsule_IsValid, PyCapsule_New

src/rapidfuzz/distance/metrics_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#cython: freethreading_compatible = True
2+
13
from . import metrics_py
24
from ._initialize_cpp import Editops
35
import sys

src/rapidfuzz/fuzz_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#cython: freethreading_compatible = True
2+
13
from . import fuzz_py
24
from .distance._initialize_cpp import ScoreAlignment
35

src/rapidfuzz/process_cpp_impl.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#cython: freethreading_compatible = True
2+
13
from rapidfuzz.fuzz import WRatio, ratio
24

35
from . import process_py

src/rapidfuzz/utils_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#cython: freethreading_compatible = True
2+
13
from cpp_common cimport (
24
CreateProcessorContext,
35
SetProcessorAttrs,

tools/sdist.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ index 517f32d..1e855ed 100644
66
[build-system]
77
requires = [
88
- "scikit-build-core>=0.11",
9-
- "Cython >=3.0.12, <3.2.0"
9+
- "Cython >=3.1.6, <3.2.0"
1010
+ "scikit-build-core>=0.11"
1111
]
1212
build-backend = "scikit_build_core.build"

0 commit comments

Comments
 (0)