| myst | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
This chapter describes the process to release Plone and its packages.
To keep the Plone software stack maintainable, the Python egg release process must be automated to a high degree.
This happens by enforcing Python packaging best practices, and then making automated releases using zest.releaser.
This is extended with Plone coredev specific features by plone.releaser.
Anyone with necessary PyPI permissions must be able to make a new release by running the fullrelease command.
This command includes the following requirements.
All files mentioned in this list may be written in Markdown or reStructuredText and have the appropriate file name suffix.
- All releases must be hosted on PyPI.
- All versions must be tagged in version control.
- Each package must have a {file}
READMEfile with links to the version control repository and issue tracker. - {file}
CHANGES({file}docs/HISTORY) must be always up-to-date and must contain list of functional changes which may affect package users. - {file}
CHANGESmust contain release dates. - {file}
READMEand {file}CHANGESmust be visible on PyPI. - Released eggs must contain generated gettext
.mofiles, but these files must not be committed to the repository. The.mofiles can be created with thezest.pocompileadd-on, which should be installed together withzest.releaser. .gitignoreandMANIFEST.inmust reflect the files going in to the egg (must include page template, po files).
[High quality automated package releases for Python with `zest.releaser`](https://opensourcehacker.com/2012/08/14/high-quality-automated-package-releases-for-python-with-zest-releaser/).
The Plone Release Team releases the core Plone packages. Several others also have the rights to release individual packages on PyPI. If you have those rights on your account, you should feel free to make releases.
Some packages need special care, or should be done only by specific people, as they know what they are doing. These are:
Products.CMFPlone, Plone, and plone.app.upgrade
: Please leave these to the release manager, Eric Steele.
plone.app.locales
: Please leave this to the i18n team lead, Vincent Fretin.
-
Check Jenkins status. Check the latest Plone coredev job on Jenkins. It should be green, but if it is not, fix the problem first.
-
Check out
buildout.coredev.git clone git@github.com:plone/buildout.coredev.git cd buildout.coredev git checkout 5.1 python bootstrap.py bin/buildout -c buildout.cfg -
Check packages for updates. Check all packages for updates, add to or remove from
checkouts.cfgaccordingly. This script may help:bin/manage report --interactive
This step should not be needed, because we do the check for every single commit, but people may still have forgotten to add a package to the
checkouts.cfgfile. -
Check packages individually.
Use the
bin/fullreleasescript from the core development buildout. This includes extra checks that we have added inplone.releaser. It guides you through all the next steps.- Check changelog.
Check if
CHANGESis up-to-date. All changes since the last release should be included. A "Fixes" or "New" header should be included, with the relevant changes under it. Upgrade notes are best placed here as well. Comparegit log HEAD...<LAST_RELEASE_TAG>withCHANGES, or fromzest.releaseruse the commandlasttaglog <optional tag if not latest>. - Run pyroma.
- Run check-manifest.
- Check package "best practices" (
README,CHANGES,srcdirectory). - Check if the version in
setup.pyis correct and follows our versioning best practice. - Make a release (zest.releaser:
bin/fullrelease) - Remove packages from auto-checkout section in
checkouts.cfgand updateversions.cfg.
- Check changelog.
Check if
-
Make sure
plone.app.upgradecontains an upgrade step for the future Plone release. -
Update CMFPlone version in
profiles/default/metadata.xml. -
Create an issue in https://github.com/collective/plone.app.locales/issues to ask the i18n team lead @vincentfretin to do a
plone.app.localesrelease. -
Create a pending release (directory) on dist.plone.org.
- Copy all core packages there.
- Possibly make an alpha or beta release of CMFPlone.
- Copy the
versions.cfgfile from coredev to there.
-
Write an email to the Plone developers list announcing a pending release.
-
Update
plone.app.localesversion. -
Create a unified changelog.
bin/manage changelog
-
Make the final release on dist.plone.org (remove "-pending")
-
Update the "-latest" link on dist.plone.org.
-
For Plone 5.x versions only, create the new release on Launchpad.
-
Create a release page on plone.org
-
Send links to the installers list at plone-installers@lists.sourceforge.net.
-
Wait for installers to be uploaded to Launchpad, with a link to the plone.org release page.
-
Publish release page on plone.org.
-
Update plone.org homepage links to point to the new release.
-
Send out announcement to the plone-announce email distribution list.
-
Update #plone topic (obsolete? maybe announce to Discord?)
-
Ask the security team to update the Hotfixes page in the configuration control panel.