Skip to content

CICD-066 · Build a wheel from the package declarations ​

Encyclopedia · Python CI and uv · All snippets

Previous · CICD-065 · Next · CICD-067

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites uv or Python dependencies pinned with fixture application and tests.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
uv build --wheel --out-dir dist
test -n "$(find dist -maxdepth 1 -name '*.whl' -print -quit)"

3. How it works ​

uv build creates a wheel from the declared build backend. The find assertion rejects an empty output directory before publication.

4. Verify the result ​

Verify exactly one expected package and check metadata separately.

Validation syntax-validated (Bash parse). Status definitions.