From 9d2af4e58f689502e6f7ff47dd1a45c01a76f9c0 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 3 Aug 2026 08:23:12 +1000 Subject: [PATCH] Support free-threaded Python 3.14t Declare the module GIL-free with #[pymodule(gil_used = false)] so importing textgrid no longer re-enables the GIL in free-threaded builds. Bump version to 2026.8.3. --- Cargo.lock | 2 +- Cargo.toml | 2 +- pyproject.toml | 2 +- src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fd11cca..ef5b2a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1651,7 +1651,7 @@ dependencies = [ [[package]] name = "textgrid" -version = "0.1.0" +version = "2026.8.3" dependencies = [ "bytemuck", "glfw", diff --git a/Cargo.toml b/Cargo.toml index 1c2bda2..d616bb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "textgrid" -version = "0.1.0" +version = "2026.8.3" edition = "2021" [lib] diff --git a/pyproject.toml b/pyproject.toml index 0a97468..c72d615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "textgrid" -version = "0.1.0" +version = "2026.8.3" requires-python = ">=3.11" [tool.maturin] diff --git a/src/lib.rs b/src/lib.rs index 0d0b470..398193f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -202,7 +202,7 @@ impl TextGrid { } } -#[pymodule] +#[pymodule(gil_used = false)] fn textgrid(m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_class::()?; Ok(())