Contributions are welcome.
This repository is Python-first at runtime. Most behavior changes therefore need two checks:
- is the Python runtime contract correct and documented?
- did the change accidentally break the supported Python runtime contract?
- Create a branch from
dev. - Keep changes scoped to one objective.
- Install the CLI in editable mode:
uv sync --extra dev --python 3.12If you are only operating envctl from a source checkout and are not doing contributor validation work, install the runtime-only stack with python -m pip install -r python/requirements.txt instead. The editable .[dev] lane is for contributors working on this repository itself.
- Run the authoritative repo-wide validation lane:
uv run --extra dev pytest -q
uv run --extra dev python -m build
uv run --extra dev python scripts/release_shipability_gate.py --repo .- To verify the release gate against the same canonical test lane:
uv run --extra dev python scripts/release_shipability_gate.py --repo . --check-tests-
Use narrower
unittesttargets only for focused local iteration; they are no longer the authoritative release-readiness lane. -
Use conventional commits (
type(scope): subject). -
Open a PR targeting
devwith:
SummaryValidationImpact
Confirm the change is reflected in the right doc layer:
- user docs if operators will use or notice it
- reference docs if the command, flag, or config contract changed
- developer docs if internal architecture or extension rules changed
- planning or migration docs if cutover governance meaning changed
When behavior changes, update:
docs/reference/.envctl.example- relevant file in
docs/ - root
README.md(only if entrypoint/quick start changed)
Releases are produced by .github/workflows/release.yml. From the Actions tab, run Release and pick a bump kind (patch is the default; pass an explicit --version to override). The workflow:
- Computes the next version from
pyproject.toml. - Aggregates merged PR titles since the previous version tag using GitHub's auto-generated release notes.
- Updates
pyproject.toml, the README badges, and writesdocs/changelog/RELEASE_NOTES_<version>.mdon arelease/envctl-<version>branch. - Opens a release PR so protected
mainreceives the bump through repository rules. - After that release PR is merged, tags the new version from
main, builds wheel + sdist, and creates the GitHub Release.
To override GitHub's generated "What's Changed" body, check in a non-empty docs/changelog/RELEASE_NOTES_<version>.md file for the target version before running the release workflow. If that file is present, the workflow uses it as the release notes source; otherwise it falls back to GitHub's generated notes.
If repository policy blocks the default GitHub Actions token from creating pull requests, the workflow still pushes the release/envctl-<version> branch and prints a manual PR URL. Configure ENVCTL_RELEASE_PR_TOKEN with contents and pull-request write permissions to let the workflow open or update release PRs automatically under those policies.
If you need to dry-run the version bump locally, python scripts/prepare_release.py compute-version --bump patch prints the next version without modifying any files.
For Python runtime behavior changes, check whether these docs also need updates:
docs/user/python-engine-guide.mddocs/developer/python-runtime-guide.mddocs/developer/config-and-bootstrap.mddocs/developer/command-surface.mddocs/developer/ui-and-interaction.mddocs/developer/runtime-lifecycle.mddocs/developer/state-and-artifacts.mddocs/developer/debug-and-diagnostics.mddocs/developer/python-runtime-guide.mddocs/developer/testing-and-validation.md