Skip to content

Add config.min_version for version gating#181

Merged
ericof merged 1 commit intomainfrom
issue-180
Apr 13, 2026
Merged

Add config.min_version for version gating#181
ericof merged 1 commit intomainfrom
issue-180

Conversation

@ericof
Copy link
Copy Markdown
Member

@ericof ericof commented Apr 13, 2026

Summary

  • Template repositories can now declare config.min_version in cookieplone-config.json. When the installed Cookieplone is older than the required version, generation stops early with a clear upgrade instruction.
  • Added VersionTooOldException and wired it through the CLI error handling.
  • Updated the JSON schema to accept the new min_version field.
  • Welcome screen now displays the installed Cookieplone version in the panel title.
  • Added docstrings and type annotations to all functions in console.py.

Closes #180

Test plan

  • pytest passes (895 tests, 10 new for min_version)
  • ruff check and ruff format clean
  • vale passes with 0 errors
  • Pre-commit hooks pass
  • Verify version satisfied, version too old, missing key, pre-release, and dev version scenarios
  • Verify welcome screen shows version in panel title

@ericof ericof requested a review from a team as a code owner April 13, 2026 13:19
@ericof ericof merged commit 94d5a04 into main Apr 13, 2026
10 checks passed
@ericof ericof deleted the issue-180 branch April 13, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add min_version to cookieplone-config.json for version gating

1 participant