Install pre-commit hooks to catch formatting errors before committing:
uv run pre-commit installRequires PyPI credentials in your keyring (see below).
Tag the current release and push it:
git pull
git tag --list "v*"
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push --tagsBuild and publish:
rm -rf dist
uv build
uv publishInstall keyring (used by uv for publishing) and set your token:
uv tool install keyring
keyring set 'https://upload.pypi.org/legacy/' __token__Add these environment variables to your shell:
export UV_KEYRING_PROVIDER=subprocess
export UV_PUBLISH_USERNAME=__token__