Zest.releaser originated at Zest software so there are some assumptions built-in that might or might not fit you. Lots of people are using it in various companies and open source projects, so it’ll probably fit :-)

  • We absolutely need a version. There’s a version.txt,, or pyproject.toml in your project. The version.txt has a single line with the version number (newline optional). The should have a single version = '0.3' line somewhere. You can also have it in the actual setup() call, on its own line still, as `` version = ‘0.3’,``. Indentation and comma are preserved. If your actually reads the version from your setup.cfg (as it does automatically using setuptools since version 30.3.0), then the version will be modified there too. If you need something special, you can always do a version=version and put the actual version statement in a zest.releaser- friendly format near the top of the file. Reading (in Plone products) a version.txt into works great, too. If you use pyproject.toml, you should put the version under the project metadata section, which also contains the package name, as a single line like version = "0.3".

  • The history/changes file restriction is probably the most severe at the moment. zest.releaser searches for a restructuredtext header with parenthesis. So something like:

    Changelog for xyz
    0.3 (unreleased)
    - Did something
    0.2 (1972-12-25)
    - Reinout was born.

    That’s just the style we started with. Pretty clear and useful.

    If you use markdown for the changelog, you should use the “underline” style of headings, not the “atx” style where you prefix the headers with # signs.