config-package CLI#
Synopsis#
config-package [OPTIONS] PATH
PATH is the filesystem path to the target Python package repository.
Options#
--branch BRANCH_NAMEGit branch name to create for the changes. Default: auto-generated as
config-with-<type>-template-<commit-hash>.Important
Use
--branch currentto update the current branch instead of creating a new one. This is essential when re-runningconfig-packageafter changing.meta.toml.--commit-msg MSGCustom commit message. Default: an auto-generated message describing the configuration update.
--no-commitDo not automatically commit changes after the configuration run. Useful for reviewing changes before committing.
--pushPush changes to the remote after the configuration run. Default: changes are not pushed.
--toxRun
toxon the repository after applying configuration. Default: tox is not run.--trackAdd the package to
packages.txtin the plone.meta repository. Default: packages are not tracked.-t, --type TYPEConfiguration type. Currently only
defaultis available. Only needed the first time; the value is stored in.meta.toml.-h, --helpDisplay help and exit.
Behavior#
Creates a new git branch from the current branch (unless
--branch current).Reads
.meta.tomlif present, or creates it with defaults.Renders Jinja2 templates into configuration files.
Validates generated files (TOML, YAML, INI, editorconfig).
Creates a towncrier news entry.
Commits changes (unless
--no-commit).Optionally pushes and/or runs tox.
Exit codes#
0Success.
- Non-zero
An error occurred during configuration. The error message is printed to stderr. You are prompted to proceed or abort.