To roll a release, make sure you have your PyPI credentials in your keyring and that you have the keyring tool installed.
Tag the current release and push it:
git pull
git --no-pager tag --list "v*"
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push --tagsThen run:
rm -rf dist
uv build
uv publishInstall keyring (used by uv for publishing) and set your credentials:
uv tool install keyring
keyring set 'https://upload.pypi.org/legacy/' __token__Next, add these environment variables:
UV_KEYRING_PROVIDER=subprocess
UV_PUBLISH_USERNAME=__token__