.. image:: https://github.com/ontime-re/ontime/actions/workflows/ci.yml/badge.svg :target: https://github.com/ontime-re/ontime/actions/workflows/ci.yml :alt: Continuous Integration .. image:: https://badge.fury.io/py/ontime.svg :target: https://badge.fury.io/py/ontime :alt: PyPI version ============== Make a Release ============== This guide walks you through publishing a new version of onTime on PyPI. #. Switch to the `main` branch .. code-block:: bash # make sure you are on the right branch git checkout main #. Merge `develop` into `main` .. code-block:: bash git merge develop git push #. Update the version in `pyproject.toml` .. code-block:: bash [project] name = "ontime" version = "x.y.z-suffix" #. Commit and push .. code-block:: bash git add pyproject.toml git commit -m 'Update version to x.y.z-suffix' #. Tag the version .. code-block:: bash git tag -a v -m 'Version x.y.z-suffix' git push origin v #. Build the package .. code-block:: bash make build This runs ``uv build`` under the hood. #. Publish the package .. code-block:: bash make publish This runs ``uv publish``. Then create the `GitHub Release `_. #. Double-check everything went well * On `GitHub Actions `_. * On `PyPI `_. * Done! 🎉