Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,15 @@ jobs:
exit 1
fi

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install build tool (Hatch)
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build package with Hatch
- name: Install uv
uses: astral-sh/setup-uv@v5
# `uv build` drives the `hatchling` backend `[build-system]` declares, so
# this is the same sdist and wheel `uv build` produces locally. `uv`
# resolves an interpreter matching `requires-python` on its own, so there
# is no separate Python to set up.
- name: Build package
id: build
run: |
hatch clean
hatch build
run: uv build
- name: Publish package
# No user/password: an explicit password disables Trusted Publishing,
# and with it the build attestations this action produces by default.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

### Changed

- The release workflow builds with `uv build` instead of installing `hatch`
with `pip`. It was the only workflow not going through `uv`, and the second
way to reach the same `hatchling` backend was a way for the release build to
drift from the one every other job and every developer runs.

### Fixed

- The GitHub release no longer depends on the PyPI upload succeeding. It was
Expand Down
Loading