Move release notes to GitHub Releases and derive the version from the tag
Merged
KL
5d ago+78+78+01234567890123456789-37-37-01234567890123456789
The same change as Kludex/uvicorn#3261. 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 kept for history up to 0.0.34 and is no longer updated. It points to GitHub Releases at the top.- The docs
Changelognav entry, the README link and theChangelogproject URL point to the releases page.docs/changelog.md, which only includedCHANGELOG.md, is removed.
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.
- The header and the credits are checked separately, so rerunning the workflow after a failed fetch adds the credits without repeating the header.
Version
uv-dynamic-versioningreads the version from the Git tag. Tags stay unprefixed, like0.0.35.python_multipart.__version__is imported frompython_multipart/_version.py, which Hatchling writes at build time.check-sdistis told the file exists only in the sdist.publish.ymlfetches the full history, since a shallow checkout does not fetch the tags. It takes the version for the PyPI environment URL from the tag name, becauseuvx hatchling versioncannot load the new version source.build-constraint-dependenciespinshatchling,uv-dynamic-versioningand their dependencies, since uv does not lock build dependencies.
Checked locally
- A clone tagged
0.0.35builds as0.0.35, and a commit after0.0.34builds as0.0.35.dev1+c725db3. scripts/check,scripts/testandscripts/renamepass, with coverage at 100%, and the docs build.
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 docs are on GitHub Pages, which has no redirects, so the old
/changelog/page returns a 404. - A fresh checkout needs
scripts/setupbeforeimport python_multipartworks, becausepython_multipart/_version.pyis generated.
Session: pi --session 01a20ccc-942b-72f1-90ed-ac23bd733985