DevOps
Headless Wheel Builder is designed to run unattended. Everything on this page works identically on a developer laptop and inside CI.
Pipeline orchestration
Section titled “Pipeline orchestration”Define multi-stage pipelines in YAML:
stages: - name: build command: hwb build . --python 3.11 --python 3.12 - name: test command: pytest tests/ - name: publish command: hwb publish dist/*.whl --to pypi depends_on: [build, test]Run the full pipeline or pick individual stages:
hwb pipeline run my-pipeline.ymlhwb pipeline run my-pipeline.yml --stage buildGitHub Actions generator
Section titled “GitHub Actions generator”Generate a ready-to-commit CI workflow from your project:
hwb actions generate ./my-project --output .github/workflows/ci.ymlThe generator reads your pyproject.toml and produces a workflow with build matrices, caching, and publish steps already configured.
Multi-repo operations
Section titled “Multi-repo operations”When you manage a family of packages, coordinate them as a group:
# build all repos in a manifesthwb multirepo build --manifest repos.yml
# sync versions across reposhwb multirepo sync --version 2.0.0
# cut a coordinated releasehwb multirepo release --tag v2.0.0Notifications
Section titled “Notifications”Send build results to your team:
# Slackhwb notify --channel slack --webhook $SLACK_URL --message "v1.0.0 published"
# Discordhwb notify --channel discord --webhook $DISCORD_URL
# Microsoft Teamshwb notify --channel teams --webhook $TEAMS_URL
# Generic webhookhwb notify --channel webhook --url https://example.com/hookNotifications include build status, duration, artifact count, and a link to the release.
Artifact caching
Section titled “Artifact caching”Built wheels are cached locally using an LRU strategy:
# list cached artifactshwb cache list
# set max cache sizehwb cache config --max-size 5GB
# prune old entrieshwb cache pruneCache hits skip the entire build step, cutting repeat builds from minutes to seconds.
Metrics and analytics
Section titled “Metrics and analytics”Track your build health over time:
# show build statshwb metrics summary
# export to JSON for dashboardshwb metrics export --format json --output metrics.jsonMetrics include build success rates, average duration, cache hit ratios, and failure breakdowns by error type.