fix(release): install uv inside PSR container before uv build#40
Merged
Conversation
The python-semantic-release v10.5.3 GitHub Action runs in its own Docker image which ships Python 3.14 but does not include uv on PATH. With build_command = "uv build", the v0.2.0 release attempt on b4d5270 aborted with exit code 127 (command not found) before the version-bump commit, tag, or GH Release were produced. Prepend a pip install so uv is available to the build step. Keeps the project's uv-first toolchain at release time; one-time ~3s cost per release run. Failed run: https://github.com/ckrough/drover/actions/runs/25671079007
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The v0.2.0 release attempt on
b4d5270aborted withBuild command failed with exit code 127because the python-semantic-release@v10.5.3 action runs in a Docker container that ships Python 3.14 but notuv. My PR #39 setbuild_command = "uv build"assuming the project's host toolchain was available; it isn't.Fix
One-time
pip install uvcost per release (~3 s). Keeps the project's uv-first toolchain at build time; alternative waspython -m pip install build && python -m buildwhich would diverge from the rest of the build flow.Failure evidence
Failed run: https://github.com/ckrough/drover/actions/runs/25671079007
PSR computed the next version correctly (
0.2.0minor bump from PR #38'sfeat(taxonomy)). The failure was entirely at thebuild_commandinvocation; no commit, tag, or release artifact landed.After merge
The push will re-trigger
release.ymlon this merge commit. PSR will once again see thefeat:from PR #38 plus thefix:from this PR sincev0.1.0, compute a minor bump tov0.2.0, install uv, build sdist + wheel, commitchore(release): 0.2.0, tagv0.2.0, and create the GH Release with both artifacts attached.