Skip to content

Commit d42688c

Browse files
Change sdist build command to use 'uv' (#641)
* Change sdist build command to use 'uv' Since the guide was heavily using `uv` already, it's probably a good idea to also reference `uv build --sdist` as the primary option. * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 394c595 commit d42688c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/pages/guides/gha_wheels.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,20 @@ make_sdist:
8383
with:
8484
fetch-depth: 0 # Optional, use if you use setuptools_scm
8585
submodules: true # Optional, use if you have submodules
86+
- uses: astral-sh/setup-uv@v6
8687
8788
- name: Build SDist
88-
run: pipx run build --sdist
89+
run: uv build --sdist
8990
9091
- uses: actions/upload-artifact@v4
9192
with:
9293
name: cibw-sdist
9394
path: dist/*.tar.gz
9495
```
9596

96-
You can instead install build via pip and use `python -m build --sdist`. You can
97-
also pin the version with `pipx run build==<version>`.
97+
Instead of using `uv`, you can also run `pipx run build --sdist`, or install
98+
build via pip and use `python -m build --sdist`. You can also pin the version
99+
with `pipx run build==<version>`.
98100

99101
## The core job (3 main OS's)
100102

0 commit comments

Comments
 (0)