Publishing to PyPI

New versions of pybalmorel are distributed to PyPI. The steps below assume you are in the dev environment (pixi shell).

Steps

  1. Bump the version in the following files (a project-wide find & replace works well):

    • pyproject.toml

    • docs/conf.py

    • docs/get_started/installation.md

  2. Build the distribution:

    python -m build
    

    This creates a source archive and a wheel in the dist/ folder.

  3. Upload to PyPI using your PyPI token:

    python -m twine upload dist/pybalmorel-X.Y.Z.tar.gz
    

    You will need a PyPI account and an API token configured in ~/.pypirc or passed interactively.