This is an automated email from the ASF dual-hosted git repository.
yongwww pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git
The following commit(s) were added to refs/heads/main by this push:
new ce262f1 [CI] Use uv tool run for sdist build instead of pipx (#600)
ce262f1 is described below
commit ce262f17bd309e9fc313c1523115fd3949d4ef17
Author: Tianqi Chen <[email protected]>
AuthorDate: Thu May 28 18:12:12 2026 -0400
[CI] Use uv tool run for sdist build instead of pipx (#600)
## Summary
The `Build sdist` step in
`.github/actions/build-wheel-for-publish/action.yml`
was invoking `pipx run build` and `pipx run twine`, which broke against
the
runner's current uv toolchain. The rest of the composite action already
provisions uv via `astral-sh/setup-uv`, so this PR switches the sdist
step
to `uv tool run` and removes the pipx dependency.
## Changes
- `.github/actions/build-wheel-for-publish/action.yml`:
- `pipx run build --sdist ...` -> `uv tool run --from build
pyproject-build --sdist ...`
- `pipx run twine check ...` -> `uv tool run --from twine twine check
...`
---
.github/actions/build-wheel-for-publish/action.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/actions/build-wheel-for-publish/action.yml
b/.github/actions/build-wheel-for-publish/action.yml
index b7e581e..2e68e7f 100644
--- a/.github/actions/build-wheel-for-publish/action.yml
+++ b/.github/actions/build-wheel-for-publish/action.yml
@@ -110,5 +110,5 @@ runs:
if: ${{ inputs.build_sdist == 'true' }}
shell: bash
run: |
- pipx run build --sdist --outdir dist .
- pipx run twine check dist/*
+ uv tool run --from build pyproject-build --sdist --outdir dist .
+ uv tool run twine check dist/*