Skip to content

Add legacy-package migration guidance to plonecli skill#101

Merged
MrTango merged 2 commits into
masterfrom
MrTango/legacy-package-migration-guide
May 21, 2026
Merged

Add legacy-package migration guidance to plonecli skill#101
MrTango merged 2 commits into
masterfrom
MrTango/legacy-package-migration-guide

Conversation

@MrTango
Copy link
Copy Markdown
Contributor

@MrTango MrTango commented May 21, 2026

Summary

  • Add reference/migrate.md documenting how to adapt old/legacy Plone packages (mr.bob/bobtemplates.plone, buildout, setup.py) so plonecli's copier subtemplates wire in correctly.
  • Update SKILL.md decision flow, the legacy rule, and the description to point at the new migration reference.
  • Update reference/add.md to redirect to the migration guide when add is run inside a legacy package.

The guidance favors minimal structural edits — adding the [tool.plone.backend_addon.settings] block and a stub configure.zcml — over hand-writing subtemplate output or re-running the backend_addon template (which overwrites real code like __init__.py).

Test plan

  • Skill renders correctly and reference links resolve
  • Verify the legacy-package workflow on a real old package: plonecli -l detects the addon after the minimal edits, and plonecli add lands files correctly

MrTango added 2 commits May 22, 2026 01:36
Document how to adapt old mr.bob/buildout/setup.py packages so plonecli
subtemplates wire in correctly: make minimal structural edits (add the
[tool.plone.backend_addon.settings] block, stub configure.zcml) instead of
hand-writing subtemplate output or re-running the backend_addon template.
@MrTango MrTango merged commit d128f27 into master May 21, 2026
6 checks passed
@MrTango MrTango deleted the MrTango/legacy-package-migration-guide branch May 21, 2026 22:48
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.

1 participant