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.
This commit is contained in:
Andrew Hamilton 2026-08-03 08:23:12 +10:00
parent 49125c7a38
commit 9d2af4e58f
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -1651,7 +1651,7 @@ dependencies = [
[[package]]
name = "textgrid"
version = "0.1.0"
version = "2026.8.3"
dependencies = [
"bytemuck",
"glfw",

View file

@ -1,6 +1,6 @@
[package]
name = "textgrid"
version = "0.1.0"
version = "2026.8.3"
edition = "2021"
[lib]

View file

@ -4,7 +4,7 @@ build-backend = "maturin"
[project]
name = "textgrid"
version = "0.1.0"
version = "2026.8.3"
requires-python = ">=3.11"
[tool.maturin]

View file

@ -202,7 +202,7 @@ impl TextGrid {
}
}
#[pymodule]
#[pymodule(gil_used = false)]
fn textgrid(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<TextGrid>()?;
Ok(())