Skip to content

Commit eaf4152

Browse files
committed
ci: 🐛 fix broken sdist/wheel build step in deploy workflow
pipx run build no longer resolves an executable named 'build'; use uv directly and invoke the pyproject-build console script.
1 parent a9b9dad commit eaf4152

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ jobs:
3939
with:
4040
fetch-depth: 0 # such that setuptools_scm can do its job correctly
4141

42+
- name: Install the latest version of uv
43+
uses: astral-sh/setup-uv@v7
44+
with:
45+
enable-cache: true
46+
4247
- name: Build SDist and Wheel
4348
run: |
44-
pipx install uv
45-
46-
pipx run build --verbose --sdist --wheel --installer=uv
49+
# the `build` package's console script is `pyproject-build`, not `build`
50+
uvx --from build pyproject-build --verbose --sdist --wheel --installer=uv
4751
4852
- uses: actions/upload-artifact@v7
4953
with:

0 commit comments

Comments
 (0)