How to publish new versions
This will mean the example clients always show the latest version in their MANIFEST.md files.
Update the settings.py file to make the version match the tag:
# clientele/settings.py
VERSION = "<VERSION>"Regenerate the test clients
make generate-test-clientsWhen you type git diff you should now see the test clients have updated their MANIFEST.md files.
This updates the project to be a new version:
# pyproject.toml
version = "<VERSION>"Now update the package:
make installThe uv.lock file should update to the new version.
Put all these changes into a single commit, then push to main:
git add .
git commit -m "version <VERSION>"
git push origin mainMake sure you are on the main branch and on the correct commit for releasing:
# Latest commit on main
git checkout main
git pull origin main
# Make sure you have the latest tags
git fetch --tags
# Check the list doesn't already have the tag you're creating
git tagCreate the new tag:
git tag <VERSION>Push the tag to remote:
git push origin --tagsGo to https://github.com/phalt/clientele/tags and create a new release from the tag.
Copy and paste the correct version contents from CHANGELOG.md.
Mark as the latest release.
Nice and easy
make deploy-docsTakes about 5-10 minutes to deploy fully.
This requires pypi login details.
$UV_PUBLISH_TOKEN=<TOKEN> make release