Continuous Integration PyPI version

Make a Release#

This guide walks you through publishing a new version of onTime on PyPI.

  1. Switch to the main branch

    # make sure you are on the right branch
    git checkout main
    
  2. Merge develop into main

    git merge develop
    git push
    
  3. Update the version in pyproject.toml

    [project]
    name = "ontime"
    version = "x.y.z-suffix"
    
  4. Commit and push

    git add pyproject.toml
    git commit -m 'Update version to x.y.z-suffix'
    
  5. Tag the version

    git tag -a v<x.y.z-suffix> -m 'Version x.y.z-suffix'
    git push origin v<x.y.z-suffix>
    
  6. Build the package

    make build
    

    This runs uv build under the hood.

  7. Publish the package

    make publish
    

    This runs uv publish. Then create the GitHub Release.

  8. Double-check everything went well