Script: switch to PEP 420 native namespace #297
Merged
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.
I have copied the script from zope meta and adapted it a bit for our packages.
I have added
zest.releaseras dependency, because the script callbin/bumpversion.I have applied it on
plone.protectlike this, first making the package for Plone 6.2 only:./venv/bin/config-package --branch pep-420-native-namespace /Users/maurits/community/plone-coredev/6.2/src/plone.protect.meta.tomland set:./venv/bin/config-package --branch pep-420-native-namespace --commit-msg "Set test matrix to 6.2 only." /Users/maurits/community/plone-coredev/6.2/src/plone.protect./venv/bin/switch-to-pep420 --no-breaking /Users/maurits/community/plone-coredev/6.2/src/plone.protectI have added
--no-breaking, otherwise it wants to bump6.0.0a2.dev0to7.0.0.dev0.For most other packages we would not use this option, because we do want a major release. But then we first need to create an x.y maintenance branch, and change coredev 6.1 (and possibly 6.0) to use this branch in
sources.cfg.Resulting PR for
plone.protectis here:plone/plone.protect#138