Skip to content

Releasing (maintainers)

Nothing is published automatically. A release is a deliberate, manual sequence; every publishing step needs a maintainer's approval.

One-time setup

  1. PyPI / TestPyPI accounts with two-factor authentication.
  2. Trusted Publishers (no API tokens): on https://test.pypi.org and https://pypi.org, add a pending publisher for project bimora-open-source, owner adelkazemi1, repository bimora-open-source, workflow release.yml, environment testpypi (TestPyPI) or pypi (PyPI).
  3. GitHub environments testpypi and pypi (repository Settings → Environments) with required reviewers, so every publishing run waits for an explicit approval.

Each release

  1. Update CHANGELOG.md (move "Unreleased" to the version, add the date) and the version in pyproject.toml and src/bimora/__init__.py.
  2. Make sure CI is green on main.
  3. Actions → Release → Run workflow with target testpypi. Approve the environment. The workflow runs the tests, builds, checks the distribution contents and uploads.
  4. Verify in a clean environment:
python -m venv /tmp/check && /tmp/check/bin/python -m pip install \
    --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ bimora-open-source
/tmp/check/bin/bimora --version
  1. Run the workflow again with target pypi and approve.
  2. Tag the released commit (git tag -s v0.1.0) and create the GitHub release from docs/release-notes-v0.1.0.md.

PyPI does not allow re-uploading a version; fix problems with a new patch version.