Require Python 3.12 for workflow automation

This commit is contained in:
2026-07-13 14:07:14 +02:00
parent eabf2273a7
commit e35e5040a3
5 changed files with 16 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ from typing import Any, Iterable, Sequence
try:
import tomllib
except ModuleNotFoundError: # pragma: no cover - Python < 3.11 is unsupported
except ModuleNotFoundError: # pragma: no cover - Python < 3.12 is unsupported
tomllib = None
@@ -77,7 +77,7 @@ class Config:
@classmethod
def load(cls, path: Path) -> "Config":
if tomllib is None:
raise WorkItemError("Python 3.11 or newer is required")
raise WorkItemError("Python 3.12 or newer is required")
if not path.is_file():
raise WorkItemError(f"Missing workflow configuration: {path}")
with path.open("rb") as handle: