Conversation
## Summary Already in place and unchanged: - 3.9+ drop-in for stdlib `difflib`, with no runtime dependencies - scikit-build-core + CMake - sdist without Cython after generate + `tools/sdist.patch` - pip/cibuildwheel as the published path This PR adds 3.14 and free-threaded 3.14t support and the Cython / concurrency work those builds require. ## Problem - No 3.14 or free-threaded 3.14t wheels. - Cython was `>=3.0.12,<3.1.0`. 3.14t does not compile on Cython 3.0.x. - No `# cython: freethreading_compatible=True`, so a 3.14t import re-enables the GIL. - No documented or tested concurrency contract. `SequenceMatcher` scratch is per-instance; sharing one matcher across threads is unsupported (same as stdlib). `HtmlDiff._default_prefix` is process-wide. - Local uv workflow was not set up (optional; not a user-facing break). ## Changes - Cython `>=3.3.0,<3.4` (build-only); scikit-build-core `>=1.0`; CMake max 3.30. - `freethreading_compatible=True` pragma; `HtmlDiff._default_prefix` lock; docs; `tests/test_concurrency.py`. - Wheel matrix includes 3.14/3.14t with cibuildwheel 4.2.1 and small portability fixes (3.9 `zip` without `strict=`, skip thread tests when threads cannot start, Windows ARM64 delvewheel exclude MSVC CRT); Intel Mac CI uses macos-15-intel because macos-13 runners are retired. - Optional local uv (`uv.toml` / `uv.lock`); no `.python-version`; `AGENTS.md` is contributor docs only. ## Compatibility - Python 3.9+ and the public API are unchanged. - Optional uv does not change pip, conda, thefuzz, PyPy, or sdist-without-Cython. CI stays on pip. ## Dependencies - Runtime: none. - Build: Cython and scikit-build-core bumps (cmake/ninja stay out of `build-system.requires`). - Dev: optional `pytest>=8`. ## Test plan - Local pytest on 3.11, 3.12, 3.13, 3.14, and 3.14t. - Isolated wheel build. - CI matrix including 3.14/3.14t.
Wheel jobs already install each tag and run the test suite; the sdist job only compiled. Match RapidFuzz’s install-then-pytest step and document which cibuildwheel skips stay build-only. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Already in place and unchanged:
difflib, with no runtime dependenciestools/sdist.patchThis PR adds 3.14 and free-threaded 3.14t support and the Cython / concurrency work those builds require.
Problem
>=3.0.12,<3.1.0. 3.14t does not compile on Cython 3.0.x.# cython: freethreading_compatible=True, so a 3.14t import re-enables the GIL.SequenceMatcherscratch is per-instance; sharing one matcher across threads is unsupported (same as stdlib).HtmlDiff._default_prefixis process-wide.Changes
>=3.3.0,<3.4(build-only); scikit-build-core>=1.0; CMake max 3.30.freethreading_compatible=Truepragma;HtmlDiff._default_prefixlock; docs;tests/test_concurrency.py.zipwithoutstrict=, skip thread tests when threads cannot start, Windows ARM64 delvewheel exclude MSVC CRT); Intel Mac CI uses macos-15-intel because macos-13 runners are retired.uv.toml/uv.lock); no.python-version;AGENTS.mdis contributor docs only.Compatibility
Dependencies
build-system.requires).pytest>=8.Test plan
Made with Cursor