Plone release management utilities
Project description
Introduction
Tools to make managing Plone core releases easier. It is a wrapper around zest.releaser, plus it adds some commands.
WARNING: this package is only meant for development of core Plone. It may have useful bits for others, but we may drop features and edge cases at any time if it is no longer useful for Plone.
Installation
Do pip install plone.releaser or add it to your buildout:
[release] recipe = zc.recipe.egg eggs = plone.releaser
Main usage: release a package
In the Plone core development buildout go to src/some.package and run ../../bin/fullrelease. This calls the fullrelease command from zest.releaser, but with some extra hooks and packages available.
One nice thing it does: look in the checkouts and sources of your buildout.coredev checkout and update them: remove the released package from the checkouts and update the version.
If you are working on branch 6.1 of coredev, then we check if you also have branches 5.2 and 6.0 checked out. There we check if the branch of the released package is in the sources. If you make a release from package branch main and this is the branch used in the sources, then we update the checkouts and sources of this coredev branch as well.
After releasing a package, you should wait a few minutes before you manually push the changes to all coredev branches. This gives the PyPI mirrors time to catch up so the new release is available, so Jenkins and GitHub Actions can find it.
Main commands
Take several Buildout files and create pip/mxdev files out of them:
$ bin/manage buildout2pip
Take a Buildout versions file and create a pip constraints file out of it.
$ bin/manage versions2constraints
Generate a changelog with changes from all packages since a certain Plone release:
$ bin/manage changelog --start=6.1.0a1
Other commands
Some commands are not used much (by Maurits anyway) because they are less needed these days.
Check PyPi access to all Plone packages for a certain user:
$ bin/manage checkPypi timo
Check a package for updates:
$ bin/manage checkPackageForUpdates Products.CMFPlone
Report packages with changes:
$ bin/manage report --interactive
Pulls:
$ bin/manage pulls
Check checkout:
$ bin/manage check-checkout
Changelog
2.3.2 (2024-09-24)
Bug fixes:
Remove empty section from mxcheckouts.ini. This is when calling bin/manage remove-checkout: when disabling a checkout, we can remove the entire section. You must have default-use = false in the settings of this file. The code is simplified to not support the default value of default-use = true: the Plone coredev buildout does not want this. [maurits] (#75)
2.3.1 (2024-09-03)
Bug fixes:
Fix checking/adding/removing checkouts: search in mxsources.ini. [maurits] (#945)
Internal:
Update configuration files. [plone devs]
2.3.0 (2024-05-30)
New features:
Add buildout2pip manage command. [maurits] (#72)
Bug fixes:
Catch error when trying to change coredev branches. Not everyone may have the branches available, or there may be some problem with it. (#67)
No longer offer to push changes to buildout.coredev. This is no longer what we ever want: the newly uploaded package will not yet be available on all PyPI mirrors. Fixes issue 69. [maurits] (#69)
Internal:
Update configuration files. [plone devs]
2.2.2 (2024-04-16)
Bug fixes:
Preserve the case of package names in versions2constraints and friends. [maurits] (#65)
2.2.1 (2023-12-14)
Bug fixes:
Manage changelog: read markdown files as well. [maurits] (#48)
2.2.0 (2023-11-30)
New features:
Add bin/manage versions2constraints command. [maurits] (#3670)
Bug fixes:
Fix setting version for non-lowercase package. In the previous release this would add a duplicate line. [maurits] (#58)
Fix missing changelog entries when running bin/manage changelog. [maurits] (#60)
2.1.1 (2023-09-14)
Bug fixes:
Commit all changed files when updating a package version. We were only adding versions.cfg to the commit, but the change can be in versions-extra.cfg, or in the future also in constraints.txt. [maurits] (#57)
2.1.0 (2023-09-14)
New features:
Enable updating versions in pip constraints files. [maurits] (#53)
Enable updating checkouts in mxdex.ini files. [maurits] (#53)
Bug fixes:
Check all versions*.cfg files when updating a pin. [maurits] (#52)
Removed no longer working pulls command that I have never used. Removed PyGithub and keyring dependencies that were only used for this. Removed Source.path property that was only used for this. [maurits] (#56)
Internal:
Update configuration files. [plone devs] (a7c2b777)
2.0.1 (2023-06-22)
Bug fixes:
Allow disabling PyPI rights check, as this does not know how to check organisations. Set env variable PLONE_RELEASER_CHECK_PYPI_ACCESS=0 if you want to disable it. Also, we do not check PyPI if the user is __token__, so using an API token. [maurits] (#50)
2.0.0 (2023-02-23)
Breaking changes:
Require Python 3.8+. Cleanup code and dependencies, with help op plone/meta. Drop support for Plone 5.2 releases: no launchpad code anymore. [maurits] (#200)
1.8.8 (2022-12-21)
Bug fixes:
Fix ValueError when calling bin/manage launchpad 5.2.10.1. [maurits] (#45)
1.8.7 (2022-09-07)
Bug fixes:
report: add sleep and start parameters. [maurits] (#44)
1.8.6 (2022-01-19)
Bug fixes:
Insert buildout:docs-directory when reading sources. Workaround for issue similar to mr.roboto 89. [maurits] (#89)
1.8.5 (2021-12-01)
Bug fixes:
Fix InterpolationMissingOptionError when parsing coredev 6.0 sources. [maurits] (#42)
1.8.4 (2021-10-16)
Bug fixes:
Do not offer updating core branches 4.3 and 5.1. Only 5.2 and 6.0 are maintained. [maurits] (#41)
1.8.3 (2021-01-09)
Bug fixes:
When reporting interesting commits, catch errors when comparing with previously ignored commit. Fixes issue 39. [maurits] (#39)
1.8.2 (2020-06-26)
New features:
Support env var PLONE_RELEASER_MULTI_PACKAGES to signal doing multiple releases. We still change checkouts.cfg and versions.cfg in the relevant coredev branches then, but we do not offer to push them. [maurits] (#37)
Bug fixes:
Fixed detecting changes in packages that are missing from checkouts. [maurits] (#35)
1.8.1 (2020-03-08)
Bug fixes:
Fixed adding a package to checkouts.cfg. [maurits] (#30)
Ask before pushing an updated version when running ‘report’. [maurits] (#32)
1.8.0 (2019-11-25)
New features:
Handle coredev branch 6.0 when releasing packages. [maurits] (#27)
Bug fixes:
Fixed adding some package versions twice when releasing. [maurits] (#24)
1.7.3 (2019-08-29)
Bug fixes:
Fixed Python 3 compatibility. [maurits] (#25)
1.7.2 (2019-02-13)
No significant changes.
1.7.1 (2018-12-14)
Bug fixes:
Python 3 compatibility fix for xmlrpclib/xmlrpc import differences. [esteele] (#21)
Fix pypi URL. [gforcada] (#23)
1.7.0 (2018-10-01)
New features:
Require zestreleaser.towncrier. And start using towncrier for our own CHANGES.rst. [maurits] (#17)
1.7.0 (unreleased)
New features:
New zest.releaser hook: update other buildout.coredev branches as well. This automates the manual bookkeeping that one has to do whenever releasing packages: i.e. to check if the package just released is also checked out and used in other buildout.coredev branches. [gforcada]
Ensure that selected packages are always kept on checkouts.cfg. [gforcada]
1.5.5 (2017-10-17)
Bug fixes:
Skip over broken version definitions when building the unified changelog. [esteele]
1.5.4 (2016-11-01)
Bug fixes:
Use print as a function. [gforcada]
1.5.3 (2016-06-27)
Bug fixes:
Change pypi-url from http to https. [fgrcon]
1.5.2 (2016-06-12)
New features:
Ask before pushing to coredev, after updating the checkouts and versions. [maurits]
Bug fixes:
Fix new versions if they had dev/post release suffix. [gforcada]
1.5.1 (2016-04-28)
New features:
Changed new headings to ‘Breaking changes’, ‘New features’, ‘Bug fixes’. Old headers are still accepted, but in the postrelease we generate the new ones. In the unified changelog, we combine the old and new names. See https://github.com/plone/Products.CMFPlone/issues/1323 [maurits]
Bug fixes:
When compiling changelog, treat Incompatibilities header as special too. [maurits]
1.5.0 (2016-02-27)
New:
Added prerelease hooks to cleanup empty headers. [maurits]
Add header ‘Incompatibilities:’ in postrelease. In prerelease check if at least one of New, Fixes, Incompatibilities is there. See https://github.com/plone/Products.CMFPlone/issues/1323 [maurits]
1.4 (2016-02-11)
New:
Removed our ‘show changelog’ entry point. Required zest.releaser 6.6.0 that has this itself. [maurits]
Show New: and Fixes: in unified changelog. [maurits]
Require New: or Fixes: to be present in the changelog during prerelease. [maurits]
Simplified showing last changelog entries. Requires zest.releaser 6.0 or higher. [maurits]
Set new changelog format during postrelease. Adapt check in prerelease that warns when the original changelog text has not been changed since the previous release. Issue https://github.com/plone/Products.CMFPlone/issues/1180 [maurits]
Fixes:
Temporarily require simplejson. This is needed because launchpadlib requires lazr.restfulclient which needs a new release. See https://bugs.launchpad.net/lazr.restfulclient/+bug/1500460 [maurits]
1.3 (2015-09-27)
Fail nicely if a Plone versions.cfg can’t be located [esteele]
When showing the changelog, accept 1.7.2.1 as version. So loose version numbers instead of strict version numbers with only one or two dots. [maurits]
Run git pull on buildout.coredev to make sure it is up-to-date. [timo]
Refactor checkPackageForUpdates to be more flexible. Made it a class on its own module. [gforcada]
Create a jenkins report based on checkPackageForUpdates. [gforcada]
1.2 (2015-03-21)
Rename esteele.manager to plone.releaser. [timo]
1.1 (2014-04-23)
add feature: add the package to the version file if it doesn’t exists [jfroche]
add command to set the package version in a versions config file [jfroche]
return the new version number when appending jenkins build number to the versions of a package [jfroche]
1.0 (2014-04-23)
Initial release [esteele]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plone_releaser-2.3.2.tar.gz
.
File metadata
- Download URL: plone_releaser-2.3.2.tar.gz
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95980bafe13ab52de6c6a2c5c343b77da298b8a70fe6ac5586017f9624a179fe |
|
MD5 | cbec19ffe1e89758473d20c6cfa04471 |
|
BLAKE2b-256 | 9a28f6d3597467f7d9d95b35f4a8214386dd574ce4c89b86c802fa788ff3cb72 |
File details
Details for the file plone.releaser-2.3.2-py3-none-any.whl
.
File metadata
- Download URL: plone.releaser-2.3.2-py3-none-any.whl
- Upload date:
- Size: 50.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c993ae8cf2a7a775f958785dac6eeab44a6c490dd54e0cd51049f7c17a296a |
|
MD5 | 2be42860b04ec768787bc208a0620597 |
|
BLAKE2b-256 | 0b40459c9af4119e9bf4a6ac591dccf1ef27c5ac2bb591203d7d6dbd86dde177 |