From 4d040307975343a43c4676aced4896efb3d4fbda Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Sat, 18 Jul 2026 03:24:43 -0300 Subject: [PATCH 1/3] chore: retarget fixtures and smokes to CNA-parity extension slugs Point catalog tests, fixtures, and scaffold workflow at fastapi-docker and all-github-setup paths after the cpa-templates taxonomy rename. Co-authored-by: Cursor --- .github/workflows/scaffold-cross-platform.yml | 4 ++-- docs/MIGRATION.md | 2 +- fixtures/catalog/templates.json | 2 +- .../create-awesome-python-app/tests/test_catalog_resolve.py | 6 +++--- .../tests/test_cpa_templates_integration.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/scaffold-cross-platform.yml b/.github/workflows/scaffold-cross-platform.yml index f209c34..ea92312 100644 --- a/.github/workflows/scaffold-cross-platform.yml +++ b/.github/workflows/scaffold-cross-platform.yml @@ -18,7 +18,7 @@ env: # Full registry URLs: published PyPI 0.1.0 does not resolve catalog slugs. # After create-awesome-python-app>=0.2.0 ships resolve_catalog_spec, slugs also work. CPA_TEMPLATE_FASTAPI: https://github.com/Create-Python-App/cpa-templates?subdir=templates/fastapi-starter - CPA_ADDON_DOCKER: https://github.com/Create-Python-App/cpa-templates?subdir=extensions/python-docker + CPA_ADDON_DOCKER: https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-docker jobs: scaffold: @@ -72,7 +72,7 @@ jobs: PY addon-smoke: - name: ubuntu-latest / fastapi-starter + python-docker + name: ubuntu-latest / fastapi-starter + fastapi-docker runs-on: ubuntu-latest steps: - uses: astral-sh/setup-uv@v7 diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md index 6ca4ca9..9aeef63 100644 --- a/docs/MIGRATION.md +++ b/docs/MIGRATION.md @@ -104,7 +104,7 @@ slugs fail with a hint to pass a full URL. ```text https://github.com/Create-Python-App/cpa-templates?subdir=templates/fastapi-starter -https://github.com/Create-Python-App/cpa-templates?subdir=extensions/github-setup +https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-github-setup ``` **Local `file://` URLs.** For forks, air-gapped work, or integration tests: diff --git a/fixtures/catalog/templates.json b/fixtures/catalog/templates.json index 52631d8..0daed6b 100644 --- a/fixtures/catalog/templates.json +++ b/fixtures/catalog/templates.json @@ -50,7 +50,7 @@ "name": "GitHub Setup", "slug": "github-setup", "description": "GitHub Actions CI, Dependabot, issue templates", - "url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/github-setup", + "url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-github-setup", "type": ["fastapi-backend"], "category": "tooling", "labels": ["GitHub", "CI"] diff --git a/packages/create-awesome-python-app/tests/test_catalog_resolve.py b/packages/create-awesome-python-app/tests/test_catalog_resolve.py index 46e7b73..5126b2f 100644 --- a/packages/create-awesome-python-app/tests/test_catalog_resolve.py +++ b/packages/create-awesome-python-app/tests/test_catalog_resolve.py @@ -32,7 +32,7 @@ "extensions": [ { "slug": "github-setup", - "url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/github-setup", + "url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-github-setup", } ], } @@ -258,10 +258,10 @@ def test_validate_extension_compatibility_ok() -> None: "url": "file:///ext/github", "incompatibleWith": ["other"], }, - {"slug": "python-docker", "url": "file:///ext/docker"}, + {"slug": "fastapi-docker", "url": "file:///ext/docker"}, ] } - validate_extension_compatibility(["github-setup", "python-docker"], catalog=catalog) + validate_extension_compatibility(["github-setup", "fastapi-docker"], catalog=catalog) def test_validate_extension_compatibility_fails_on_pair() -> None: diff --git a/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py b/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py index adac7be..e20551b 100644 --- a/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py +++ b/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py @@ -143,7 +143,7 @@ def test_scaffold_via_catalog_addon_slug( "extensions": [ { "slug": "github-setup", - "url": f"file://{repo}?subdir=extensions/github-setup", + "url": f"file://{repo}?subdir=extensions/all-github-setup", } ], "categories": [], @@ -196,7 +196,7 @@ def test_scaffold_fastapi_with_github_setup_extension( "--template", f"file://{repo}?subdir=templates/fastapi-starter", "--addons", - f"file://{repo}?subdir=extensions/github-setup", + f"file://{repo}?subdir=extensions/all-github-setup", "--no-interactive", "--no-install", str(dest), From d1c91e2bc1cc9b072573feadc6e25f50f9eca7c3 Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Sat, 18 Jul 2026 04:03:49 -0300 Subject: [PATCH 2/3] style: wrap long validate_extension_compatibility call Co-authored-by: Cursor --- .../create-awesome-python-app/tests/test_catalog_resolve.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/create-awesome-python-app/tests/test_catalog_resolve.py b/packages/create-awesome-python-app/tests/test_catalog_resolve.py index 5126b2f..cbb55dc 100644 --- a/packages/create-awesome-python-app/tests/test_catalog_resolve.py +++ b/packages/create-awesome-python-app/tests/test_catalog_resolve.py @@ -261,7 +261,10 @@ def test_validate_extension_compatibility_ok() -> None: {"slug": "fastapi-docker", "url": "file:///ext/docker"}, ] } - validate_extension_compatibility(["github-setup", "fastapi-docker"], catalog=catalog) + validate_extension_compatibility( + ["github-setup", "fastapi-docker"], + catalog=catalog, + ) def test_validate_extension_compatibility_fails_on_pair() -> None: From b2b1adf38bac492731dab84e03aba69539a4e224 Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Sat, 18 Jul 2026 04:06:37 -0300 Subject: [PATCH 3/3] test: point github-setup fixture at all-github-setup dir Co-authored-by: Cursor --- .../tests/test_cpa_templates_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py b/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py index e20551b..774db7f 100644 --- a/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py +++ b/packages/create-awesome-python-app/tests/test_cpa_templates_integration.py @@ -14,7 +14,7 @@ os.environ.get("CPA_TEMPLATES_ROOT", str(_DEFAULT_CPA_TEMPLATES)) ).resolve() FASTAPI_TEMPLATE = CPA_TEMPLATES_ROOT / "templates" / "fastapi-starter" -GITHUB_SETUP = CPA_TEMPLATES_ROOT / "extensions" / "github-setup" +GITHUB_SETUP = CPA_TEMPLATES_ROOT / "extensions" / "all-github-setup" def _cpa_templates_available() -> bool: