Releasing Guide
This guide describes how to release a new version of jax_mppi to PyPI.
Prerequisites
The release process is automated using GitHub Actions, but it requires the repository to be configured as a Trusted Publisher on PyPI.
PyPI Trusted Publisher Setup
- Log in to your PyPI account.
- Go to Publishing in your project settings (or create a new project if this is the first release).
- Add a new Trusted Publisher.
- Select GitHub.
- Enter the following details:
- Owner:
riccardo-enr - Repository name:
jax_mppi - Workflow name:
publish.yml - Environment name: (Leave empty)
- Owner:
- Click Add.
This allows the GitHub Action to authenticate with PyPI using OIDC tokens without needing a long-lived API token or password.
Release Process
To release a new version:
Update Version: Update the version number in
pyproject.toml:[project] version = "0.1.6" # Example versionCommit and Push: Commit the version change and push to
main.git add pyproject.toml git commit -m "Bump version to 0.1.6" git push origin mainCreate Tag: Create a git tag for the release. The tag must start with
v.git tag v0.1.6 git push origin v0.1.6Wait for Action: The
Publish to PyPIGitHub Action will automatically run when the tag is pushed. It will build the package and upload it to PyPI.Verify: Check the PyPI page to confirm the new version is available.