This document describes the current release and versioning strategy.
New releases of the Rerun Gradio integration are published alongside Rerun releases, typically once per month.
The project follows semantic versioning with versions synchronized to Rerun releases (e.g. 0.22.0, 0.23.0, ...).
This means we might add breaking changes in each new release.
The release process is automated via GitHub Actions. Follow these steps:
Create a new branch from main with a name following the pattern:
prepare-release-X.Y.Zfor final releases and their release candidatesprepare-release-X.Y.Z-alpha.Nfor alpha releases (whereNstarts at 1)
Examples:
prepare-release-0.26.0- for version 0.26.0 (used for both RC and final releases).prepare-release-0.26.0-alpha.1- for alpha version 0.26.0-alpha.1
Important: Always specify all three version numbers (X.Y.Z), even if the last number is 0.
For example, use prepare-release-0.26.0 not prepare-release-0.26.
# Example: creating a release branch for 0.26.0
git checkout main
git pull
git checkout -b prepare-release-0.26.0
git push -u origin prepare-release-0.26.0Navigate to the Release workflow in GitHub Actions and click "Run workflow".
Select the release type:
- alpha: For early testing releases (e.g.,
0.26.0-alpha.1,0.26.0-alpha.2, ...) - rc: For release candidates (e.g.,
0.26.0-rc.1,0.26.0-rc.2, ...) - final: For the final release (e.g.,
0.26.0)
The workflow will automatically:
- Determine the target version from the branch name
- Bump the version appropriately based on the release type
- Update Rerun dependencies (
rerun-sdkand@rerun-io/web-viewer) - Update package versions in
pyproject.tomlandfrontend/package.json - Run linting and formatting checks
- Build and publish the Gradio component to PyPI and npm
- Create a draft GitHub release (for RC and final releases)
After the workflow completes:
- Check that the version was bumped correctly in the commit history
- Verify the package was published to PyPI: https://pypi.org/project/gradio-rerun-viewer/
- For RC and final releases, review and publish the draft GitHub release
Gradio does not currently have an option to pick a specific repo id when publishing, so the space has to be updated manually (gradio-app/gradio#11240).
-
Check out the Huggingface space using git:
git clone git@hf.co:spaces/rerun/gradio-rerun-viewer
-
Update the package version in the
requirements.txt. -
Commit and push the changes.
- Alpha releases: Start at
.1and increment (e.g.,0.26.0-alpha.1,0.26.0-alpha.2) - Release candidates: Start at
.1and increment (e.g.,0.26.0-rc.1,0.26.0-rc.2) - Final releases: No suffix (e.g.,
0.26.0)