fix: support py310 version sync scripts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
JerrettDavis 2026-04-21 20:42:56 -05:00
parent b852460af9
commit 56f6307665
3 changed files with 9 additions and 2 deletions

View file

@ -52,6 +52,7 @@ dependencies = [
"rich>=13.0.0", # Rich terminal output
"opentelemetry-api>=1.24.0", # Safe no-op OTEL API for instrumentation
"ast-grep-cli>=0.30.0", # AST-aware code slicing (CodeCompressor); binary wheel
"tomli>=2.0.0; python_version < '3.11'", # tomllib backport for helper scripts
]
[project.optional-dependencies]

View file

@ -4,7 +4,10 @@
import json
from pathlib import Path
import tomllib
try:
import tomllib
except ImportError: # pragma: no cover - Python 3.10 fallback
import tomli as tomllib
ROOT = Path(__file__).parent.parent

View file

@ -8,7 +8,10 @@ import json
import re
from pathlib import Path
import tomllib
try:
import tomllib
except ImportError: # pragma: no cover - Python 3.10 fallback
import tomli as tomllib
def get_version_from_pyproject(root: Path) -> str: