From 25175992e39933969dba41e88477d9d7e3d3d26a Mon Sep 17 00:00:00 2001 From: Adrian Ehrsam Date: Thu, 16 Jul 2026 09:33:10 +0200 Subject: [PATCH] Fix stale publish workflow config, ship docs/ and skills/ inside the wheel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python-publish.yml was copy-pasted from another project: python-version matched neither requires-python nor the test workflow, and the PyPI environment URL pointed at akeneo_mock_server. Also bump checkout/ setup-python to match the test workflow's fix. docs/database-layout.md and skills/pgdevkit/ previously only existed in the sdist (a side effect of hatchling's default sdist inclusion, not anything deliberately configured) — pip installs almost always use the wheel, so downstream projects got neither. force-include them into the wheel under pgdevkit/docs and pgdevkit/skills, preserving the same relative nesting depth so SKILL.md's existing "../../docs/..." links resolve unchanged in both the source repo and the installed package. Verified by building the wheel and installing it into a real venv. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01GpwZzpmtp1c1ZHp9LT1Asd --- .github/workflows/python-publish.yml | 8 ++++---- pyproject.toml | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ff5a778..00325f5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -18,17 +18,17 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/akeneo_mock_server + url: https://pypi.org/p/pgdevkit permissions: id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: "recursive" - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install uv run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index 00dfd0c..381b84f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,10 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["pgdevkit"] +[tool.hatch.build.targets.wheel.force-include] +"docs" = "pgdevkit/docs" +"skills" = "pgdevkit/skills" + [project] name = "pgdevkit" version = "0.1.0"