Require Python 3.12 for workflow automation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user