Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

chore: drop Python 3.10 support and test one CI version

Soohong Kim3e57144b6764
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7d9f868..fc8e4e2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,9 +13,9 @@ jobs:
strategy:
fail-fast: false
matrix:
- # Keep this matrix aligned with pyproject.toml and README.md:
- # 3.10 is the minimum supported CPython; 3.14 is the latest covered version.
- python-version: ["3.10", "3.14"]
+ # Test one Python version; the installable minimum is declared separately
+ # in pyproject.toml. Keep the tested version documented in README.md.
+ python-version: ["3.14"]
steps:
- uses: actions/checkout@v4
diff --git a/README.md b/README.md
index b07141c..dbf8634 100644
--- a/README.md
+++ b/README.md
@@ -157,7 +157,7 @@ python3 ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-githu
Image generation is part of this engine (`sprite_gen.gen`, providers `codex` and `grok` on a subscription you already pay for, plus an explicit-only `openai` provider for servers and SaaS that bills per call; the general `image-gen` skill is a thin shuttle over it). Video uses **your own** credential — the `grok` CLI login or an `XAI_API_KEY` — and nothing is shipped with the repo ([docs/video.md](docs/video.md)).
-`sprite-gen` supports CPython 3.10+; CI runs 3.10 and 3.14. The quickstart needs a Python with working `venv`/`ensurepip`.
+`sprite-gen` supports CPython 3.11+; CI runs only 3.14. Python 3.10 is no longer supported. The quickstart needs a Python with working `venv`/`ensurepip`.
## Attribution
diff --git a/pyproject.toml b/pyproject.toml
index 6d51194..3a5ef23 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,16 +16,14 @@ version = "2.5.2"
description = "Component-row pipeline for clean 2D game sprites and animation atlases"
readme = "README.md"
license = "Apache-2.0"
-requires-python = ">=3.10"
+requires-python = ">=3.11"
dependencies = [
"pillow>=12.3.0,<13",
# NumPy is a direct dependency, never a transitive ride-along: the chroma
# extraction path imports it directly and must not depend on some other
# package happening to pull it in.
- # Floor 2.2.6 is the newest release with CPython 3.10 wheels, so it is the
- # highest floor that keeps `requires-python = ">=3.10"` honest (2.3.x
- # requires >=3.11, 2.5.x requires >=3.12 — either would break the 3.10 CI
- # job outright). It is also >= 2.0, which matters: the byte-identity
+ # Keep the established 2.2.6 floor; dropping an older Python does not
+ # require upgrading NumPy. It is >= 2.0, which matters: the byte-identity
# contract for the extraction path depends on NEP 50 promotion rules, which
# only became the default in NumPy 2.0. The `<3` ceiling is there for the
# same reason — a major bump is free to change promotion again.
diff --git a/tests/packaging/test_curation_asset_packaging.py b/tests/packaging/test_curation_asset_packaging.py
index e2035ba..1bfcdf8 100644
--- a/tests/packaging/test_curation_asset_packaging.py
+++ b/tests/packaging/test_curation_asset_packaging.py
@@ -48,8 +48,7 @@ SCRIPT_PATH = re.compile(r"(?:^|/)scripts/[^/]+\.py$")
def _declared_package_data() -> list[str]:
"""The `sprite_gen = [...]` patterns under `[tool.setuptools.package-data]`.
- Read with a regex for the same reason `test_version_ssot.py` does: `tomllib` is 3.11+
- and this suite runs on the 3.10 floor `requires-python` promises.
+ Read the package-data declaration directly, without importing the package.
"""
section = re.search(
r"(?ms)^\[tool\.setuptools\.package-data\]\s*$(.*?)(?=^\[|\Z)", PYPROJECT)
diff --git a/tests/packaging/test_project_metadata.py b/tests/packaging/test_project_metadata.py
index 64bfe36..dc2f605 100644
--- a/tests/packaging/test_project_metadata.py
+++ b/tests/packaging/test_project_metadata.py
@@ -19,8 +19,7 @@ def _version_tuple(version: str) -> tuple[int, int]:
return int(major), int(minor)
-def test_ci_matrix_covers_declared_minimum_python() -> None:
- minimum = _declared_min_python()
+def _ci_python_versions() -> list[str]:
workflow = (ROOT / ".github" / "workflows" / "ci.yml").read_text(encoding="utf-8")
matrix = re.search(r"python-version:\s*\[(?P<versions>[^\]]+)\]", workflow)
@@ -28,10 +27,16 @@ def test_ci_matrix_covers_declared_minimum_python() -> None:
versions = re.findall(r'"(\d+\.\d+)"', matrix.group("versions"))
assert versions, "CI Python matrix must include at least one version"
- minimum_tuple = _version_tuple(minimum)
- assert minimum in versions
- assert min(_version_tuple(version) for version in versions) == minimum_tuple
+ return versions
+
+
+def test_ci_versions_are_supported_and_documented() -> None:
+ minimum_tuple = _version_tuple(_declared_min_python())
+ versions = _ci_python_versions()
assert all(_version_tuple(version) >= minimum_tuple for version in versions)
+ readme = (ROOT / "README.md").read_text(encoding="utf-8")
+ assert len(versions) == 1, "CI intentionally tests a single Python version"
+ assert f"CI runs only {versions[0]}" in readme
def test_readme_names_declared_python_support_and_venv_requirement() -> None: