Repository navigation
Enable free-threading - #1033
Merged
Marc-Antoine Schmidt (MarcAntoineSchmidtQC) merged 8 commits intoNov 19, 2026
Merged
Conversation
Jan Tilly (jtilly)
requested review from
Marc-Antoine Schmidt (MarcAntoineSchmidtQC) and
Martin Stancsics (stanmart)
as code owners
November 4, 2026 20:24
Jan Tilly (jtilly)
marked this pull request as draft
November 4, 2026 20:25
# Conflicts: # pixi.lock # pyproject.toml
Require tabmat>=4.3.1 in py314t and run its tests without -X gil=0, so that an import re-enabling the GIL fails the tests via warnings-as-errors.
Jan Tilly (jtilly)
marked this pull request as ready for review
November 17, 2026 12:16
# Conflicts: # CHANGELOG.rst # pixi.lock
Marc-Antoine Schmidt (MarcAntoineSchmidtQC)
approved these changes
Nov 19, 2026
Marc-Antoine Schmidt (MarcAntoineSchmidtQC)
left a comment
Member
There was a problem hiding this comment.
LGTM
Marc-Antoine Schmidt (MarcAntoineSchmidtQC)
merged commit Nov 19, 2026
ca2d717
into
main
30 checks passed
Marc-Antoine Schmidt (MarcAntoineSchmidtQC)
deleted the
ci/free-threading
branch
November 19, 2026 22:28
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.
Same idea as Quantco/tabmat#557.
freethreading_compatible(requires Cython>=3.1).*t-*skip from the cibuildwheel config, socp314tis built), including on Windows.py314tpixi environment (requiring tabmat>=4.3.1, the first free-threading compatible release), a CI job for it, and a check that importing glum does not re-enable the GIL.The
py314ttests run without-X gil=0: if any import re-enabled the GIL, Python would emit aRuntimeWarning, which fails the tests since warnings are treated as errors.Verified locally (macOS): importing glum leaves the GIL disabled, and the full test suite passes in
py314t(2177 tests).Left to CI: the
py314tjob and the free-threaded wheel builds, in particular Windows (/openmp), where the previouscp314t-win*skip is removed.📚 Docs preview: https://glum--1033.org.readthedocs.build/en/1033/ (built from 26a35a6)