This project publishes to PyPI using GitHub Actions and Trusted Publishing.
- PyPI project has a Trusted Publisher configured for this repository and workflow:
- Repository:
SteveEasley/pykaleidescape - Workflow:
.github/workflows/publish.yml - Environment:
pypi(if used)
- Repository:
- Update package version in
kaleidescape/__init__.py:- Set
__version__ = "X.Y.Z"(example:1.1.2).
- Set
- Run quality checks locally:
python -m pip install -e ".[dev]"ruff check kaleidescape testsmypy kaleidescape testspytest -q
- Optionally validate build artifacts:
python -m buildtwine check dist/*
- Commit and push the version bump (and any release notes/changelog updates) to
main. - Create and publish a GitHub release:
- Tag must be
vX.Y.Z(example:v1.1.2). - Target branch:
main.
- Tag must be
Publishing the GitHub release triggers .github/workflows/publish.yml, which:
- Checks out the repository.
- Verifies release tag version matches
kaleidescape.__version__:v1.1.2tag must match__version__ = "1.1.2".
- Builds the package (
sdist+ wheel). - Runs
twine checkon built artifacts. - Publishes artifacts to PyPI via OIDC Trusted Publishing.
- Confirm the GitHub Actions workflow succeeded.
- Confirm the new version appears on PyPI.
- Optional smoke test in a clean environment:
pip install -U pykaleidescape==X.Y.Z