Declarative apply spec + direct dev commands#111
Closed
MrTango wants to merge 1 commit into
Closed
Conversation
- apply <spec.yaml>: scaffold addon + features from one validated YAML, with --check dry-run and fail-fast validation (templates, answers, choices) - test/serve/debug run uv run/runwsgi/pytest directly (no invoke); add check - feed config plone_version (minor) and github_user into copier user_defaults - document the spec format, language template and service_for in the skill
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plonecli apply <spec.yaml>: scaffold an addon + all features from one declarative YAML, fully non-interactive, with--checkdry-run and fail-fast validation (unknown templates/answers, missing required answers, invalid choices). Newplonecli/spec.py.test/serve/debugnow runuv run/runwsgi/pytestdirectly (noinvoke); addedplonecli check(ruff + pytest).plone_version(reduced to minor forbackend_addon) andgithub_userinto copieruser_defaults.reference/spec.md, updated command map,languagetemplate and dynamicservice_forinreference/templates.md.Pairs with plone/copier-templates# (green, i18n-ready templates +
languagesubtemplate).Test plan
uv run --extra test pytest -m "not integration"— 119 passeduv run ruff check plonecli/spec.pyand new test files — cleanpytest -m integration tests/test_spec_e2e_integration.py— generates from a spec, ruff-clean, 23 generated tests pass in a real Plone