From 03e414cc9f1364239904e28f5b745b6a748821b6 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 14 Dec 2025 12:38:43 +0100 Subject: [PATCH] fix(version): add tomli fallback for Python < 3.11 - Add conditional runtime dependency on tomli for Python < 3.11 - Fix crash on CentOS / Python 3.9 when reading pyproject.toml - Ensure version command works consistently across distros https://chatgpt.com/share/693ea1cb-41a0-800f-b4dc-4ff507eb60c6 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a340a21..0325a8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,8 @@ authors = [ # Base runtime dependencies dependencies = [ - "PyYAML>=6.0" + "PyYAML>=6.0", + "tomli; python_version < \"3.11\"", ] [project.urls]