Home Assistant Intents Package
Packaging for intents
Install
Clone the repo and create a virtual environment:
git clone --recursive https://github.com/OHF-Voice/intents-package
cd intents-package
script/setup
Release
Releases are automated by the
Release workflow: pushing a YYYY.M.D tag
(no leading v) publishes the package to PyPI via Trusted Publishing
and creates the matching GitHub release.
To cut a release:
-
Bump version in pyproject.toml to YYYY.M.D and commit.
-
(Optional) Add a ## YYYY.M.D section to CHANGELOG.md. If present, it
becomes the release notes; otherwise GitHub auto-generates them.
-
Tag the commit and push the tag:
git tag YYYY.M.D
git push origin YYYY.M.D
The workflow then:
- Verifies the tag matches
version in pyproject.toml.
- Checks out the
intents submodule at the same tag and commits the
bumped pointer.
- Runs
script/package (build + sanity check).
- Only after that passes, pushes the submodule bump to the default branch and
moves the tag onto that commit, so the tag, the default branch, and the
published artifacts all point at the same commit.
- Publishes to PyPI and creates the GitHub release.
The intents repo must already have a tag with the matching YYYY.M.D name,
and the version must match pyproject.toml, or the workflow fails before
publishing anything.