Move release notes to GitHub Releases and derive the version from the tag
Merged
KL
9d ago+1016+1016+0123456789012345678901234567890123456789-983-983-012345678901234567890123456789
Summary
A release is now a single step: create the GitHub release. There is no release PR, since the version comes from the tag and the release notes live only in GitHub Releases.
Release notes
CHANGELOG.mdis now a regular file instead of a symlink todocs/release-notes.md. It is kept for history up to 0.54.0 and is no longer updated.uvicorn.dev/release-notesredirects to the releases page throughdocs/_redirects. TheRelease Notesnav entry and theChangelogproject URL point there directly.scripts/sync-versionis removed, since there is no changelog version left to compare with__version__.- The Releasing section in
docs/contributing.mddescribes the new flow and the shape of the notes, which follows 0.54.0.
Sponsorship header
sponsors.ymlnow puts a "This project needs your help! Let's make this project sustainable together" line, with the second sentence linked to the 2027 sponsorship fund post, at the top of every published release.- The header no longer depends on the sponsor list. Before, an empty or unreachable list left the release untouched; the list is empty today.
Version
uv-dynamic-versioningreads the version from the Git tag. Tags stay unprefixed, like0.55.0.uvicorn.__version__is imported fromuvicorn/_version.py, which Hatchling writes at build time. Animportlib.metadatalookup instead added about 6 ms toimport uvicorn, and fails in frozen applications that ship no package metadata.publish.ymlfetches the full history, since a shallow checkout does not fetch the tags.build-constraint-dependenciespinshatchling,uv-dynamic-versioningand their dependencies, since uv does not lock build dependencies. Bothuv sync --frozenanduv buildhonour the pins.
Checked locally
| Build from | Version |
|---|---|
A clone tagged 0.55.0 | 0.55.0 |
| The sdist of that build, with no Git | 0.55.0 |
A commit after 0.54.0 | 0.54.1.dev25+67281361 |
| A shallow clone with no tags, as in the test jobs | 0.0.1.dev1+ef23748 |
A source tree with no Git and no PKG-INFO | 0.0.0 |
The redirect was checked on the Cloudflare docs preview: /release-notes, /release-notes/ and /release-notes/index.html all return a 301 to the releases page.
Notes
- Building from a GitHub source tarball gives
0.0.0. Downstream packagers who build that way need to build from the sdist, or setUV_DYNAMIC_VERSIONING_BYPASSto the version. - The GitHub Pages copy of the docs does not honour
_redirects, so/release-notes/returns a 404 there.
Checklist
- I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
- I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
- I've updated the documentation accordingly.
Session: pi --session 01a20ccc-942b-72f1-90ed-ac23bd733985