This project uses bump-my-version to update release versions and setuptools_scm to derive package versions from Git tags. Prepare and merge a release PR before pushing a release tag. Pushing a tag publishes to PyPI and GHCR; opening or merging the PR does not publish a release.
-
Use Python 3.11 or newer and install the development dependencies in a virtual environment:
python3 -m venv .venv source .venv/bin/activate python -m pip install -e '.[dev]'
-
Ensure your working directory is clean (all changes committed)
-
Ensure you're on the
mainbranch and up to date:git checkout main git pull --ff-only origin main git fetch origin --tags
Review changes since the latest published release and choose the next unused
version. Do not rely only on tool.bumpversion.current_version: older releases
may have been tagged without updating it.
- Patch: Bug fixes and documentation updates
- Minor: New features and backward-compatible changes
- Major: Breaking changes for stable releases
While the project is pre-1.0, breaking changes may ship in a minor release, but must be called out with migration guidance. Release 0.23.0 requires Python 3.11+ and changes merge behavior; see README.md.
Replace X.Y.Z with the chosen version in the commands below:
git checkout -b release/X.Y.Z
bump-my-version bump --new-version X.Y.Z --no-commit --no-tag --dry-run
bump-my-version bump --new-version X.Y.Z --no-commit --no-tagThis updates:
tool.bumpversion.current_versioninpyproject.toml- The latest version in
README.md - The CLI version in
himl/main.py
Update the README release notes, including breaking changes, migration guidance,
and a comparison link from the previous release. Do not edit the generated
himl/_version.py; setuptools_scm generates it from Git metadata.
The make bump-* shortcuts create a commit and tag automatically. Do not use
them for a release PR, and do not push tags before the PR is merged.
Run the same core checks as CI:
make lint
python -m pytest tests/ -v --tb=short --cov=himl --cov-report=term-missing --cov-fail-under=80
python -m build
python -m twine check dist/*
himl --version
himl --help
himl-config-merger --help
himl examples/simple/production --format yamlBefore tagging, package metadata will contain a development version even though
himl --version reports the prepared release version. To validate release
artifacts without creating a tag, build with
SETUPTOOLS_SCM_PRETEND_VERSION=X.Y.Z python -m build and inspect the resulting
wheel and source distribution.
Commit the release files, push only the branch, and open a PR using
.github/pull_request_template.md. Include the exact validation commands and
their results. Wait for CI and review before merging.
After the release PR is merged, update main, verify the release versions and
CI results, then tag the reviewed release commit:
git checkout main
git pull --ff-only origin main
git tag -a X.Y.Z -m "Release X.Y.Z"
git push origin X.Y.ZPush only the intended release tag, not all local tags.
Wait for GitHub Actions to complete:
- PyPI Release: A new version will be published at https://pypi.org/project/himl/#history
- Docker Image: Published at https://github.com/adobe/himl/pkgs/container/himl
The publishing workflows do not create a GitHub Release. Create it from the pushed tag, then review the generated notes and add the README migration guidance:
gh release create X.Y.Z --verify-tag --title "Release X.Y.Z" --generate-notes- Check that the new version appears on PyPI
- Verify the Docker image is available
- Test install the new version:
pip install himl==X.Y.Z - Verify the GitHub release notes include breaking changes and migration guidance