From 308632055fadea32facf2e016764828a606c6daa Mon Sep 17 00:00:00 2001 From: Anass Date: Wed, 3 Jun 2026 12:04:58 -0700 Subject: [PATCH] ci: build dists with `uv build` instead of system pip install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish workflow's build job ran `uv pip install --system build`, which fails on GitHub runners: the system Python at /usr is PEP 668 externally-managed, so uv refuses to install into it. Use uv's native `uv build` instead — it builds the sdist + wheel into dist/ via the project's build backend with no system-level install. Verified locally: produces lago_agent_sdk-0.1.0.tar.gz + the wheel. --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f7b396d..1479888 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -84,9 +84,10 @@ jobs: fi echo "Tag $TAG matches pyproject version $PKG" - name: Build distributions - run: | - uv pip install --system build - python -m build + # `uv build` produces the sdist + wheel into dist/ using the project's + # build backend — no need to pip-install `build` into the runner's + # system Python (which is PEP 668 externally-managed and rejects it). + run: uv build - name: Upload dist artifacts uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: