feat: drop python 3.10 support

dropped python3.10, updated pyproject and dependencies, and also removed some blocks of code with special handling for enum.StrEnum

Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
Charlie Doern 2025-06-18 10:16:27 -04:00
parent 7d812e3bf0
commit 12d860744d
32 changed files with 63 additions and 104 deletions

View file

@ -11,7 +11,7 @@ import os
import shutil
import sys
from dataclasses import dataclass
from datetime import datetime, timezone
from datetime import UTC, datetime
from functools import partial
from pathlib import Path
@ -409,7 +409,7 @@ def _download_from_manifest(manifest_file: str, max_concurrent_downloads: int):
d = json.load(f)
manifest = Manifest(**d)
if datetime.now(timezone.utc) > manifest.expires_on.astimezone(timezone.utc):
if datetime.now(UTC) > manifest.expires_on.astimezone(UTC):
raise ValueError(f"Manifest URLs have expired on {manifest.expires_on}")
console = Console()