From 5f74e031b9dd0e9c47234738ca2db84d192d5c56 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 21 Sep 2025 16:31:41 +0800 Subject: [PATCH 1/2] 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. --- docs/pages/guides/gha_wheels.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/pages/guides/gha_wheels.md b/docs/pages/guides/gha_wheels.md index 0f967af3..08529473 100644 --- a/docs/pages/guides/gha_wheels.md +++ b/docs/pages/guides/gha_wheels.md @@ -83,9 +83,10 @@ make_sdist: with: fetch-depth: 0 # Optional, use if you use setuptools_scm submodules: true # Optional, use if you have submodules + - uses: astral-sh/setup-uv@v6 - name: Build SDist - run: pipx run build --sdist + run: uv build --sdist - uses: actions/upload-artifact@v4 with: @@ -93,7 +94,7 @@ make_sdist: path: dist/*.tar.gz ``` -You can instead install build via pip and use `python -m build --sdist`. You can +Instead of using `uv`, you can also run `pipx run build --sdist`, or install build via pip and use `python -m build --sdist`. You can also pin the version with `pipx run build==`. ## The core job (3 main OS's) From 52da768429f78de3fb7563a8b974e9ce42885726 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 21 Sep 2025 08:32:13 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- docs/pages/guides/gha_wheels.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/pages/guides/gha_wheels.md b/docs/pages/guides/gha_wheels.md index 08529473..f36f815b 100644 --- a/docs/pages/guides/gha_wheels.md +++ b/docs/pages/guides/gha_wheels.md @@ -94,8 +94,9 @@ make_sdist: path: dist/*.tar.gz ``` -Instead of using `uv`, you can also run `pipx run build --sdist`, or install build via pip and use `python -m build --sdist`. You can -also pin the version with `pipx run build==`. +Instead of using `uv`, you can also run `pipx run build --sdist`, or install +build via pip and use `python -m build --sdist`. You can also pin the version +with `pipx run build==`. ## The core job (3 main OS's)