zest.releaser plugin to call towncrier
Project description
zestreleaser.towncrier
This calls towncrier when releasing a package with zest.releaser. towncrier updates your history file (like CHANGES.rst) based on news snippets. This is for example used by pip.
The plugin will call towncrier --version <package version> --yes. You can get a preview of the result yourself by calling towncrier --version 1.2.3 --draft.
The towncrier command should be on your PATH. The plugin can also find it when it is in the same directory as the fullrelease script (or prerelease/postrelease).
Installation
Install zestreleaser.towncrier with pip:
$ pip install zestreleaser.towncrier
Then you can run fullrelease like you would normally do when releasing a package.
Contribute
Issue Tracker: https://github.com/collective/zestreleaser.towncrier/issues
Source Code: https://github.com/collective/zestreleaser.towncrier
Support
If you are having problems, please let us know by filing an issue.
License
The project is licensed under the GPL.
pyproject.toml example
towncrier needs a configured pyproject.toml file in the root of the package, next to the setup.py. For reference, here is the literal pyproject.toml file from zestreleaser.towncrier:
[tool.towncrier] # The package name must be importable for now, even when not used. # See these pull requests: # https://github.com/hawkowl/towncrier/pull/107 # https://github.com/hawkowl/towncrier/pull/112 # Workaround can be: package = "towncrier" package = "zestreleaser.towncrier" issue_format = "`Issue #{issue} <https://github.com/collective/zestreleaser.towncrier/issues/{issue}>`_" filename = "CHANGES.rst" directory = "news/" title_format = "{version} ({project_date})" # First underline is used for version/date header. # Second underline is used for the type names (like 'Bug fixes:'). underlines = ["-", ""] [[tool.towncrier.type]] directory = "breaking" name = "Breaking changes:" showcontent = true [[tool.towncrier.type]] directory = "feature" name = "New features:" showcontent = true [[tool.towncrier.type]] directory = "bugfix" name = "Bug fixes:" showcontent = true
Contributors
Maurits van Rees, m.van.rees@zestsoftware.nl
Changelog
1.0.0b2 (2018-05-16)
Bug fixes:
Do not fail when pyproject.toml file is not there. [maurits] (Issue #2)
1.0.0b1 (2018-05-15)
New features:
First release. [maurits] (Issue #1)
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
Hashes for zestreleaser.towncrier-1.0.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee9330b012e8dc7fe1c9fe3e9851cc0749d0fa8aa53ef3f75ad35568600f58c4 |
|
MD5 | 26401dbd44ab6c4e231abd4c8b556993 |
|
BLAKE2b-256 | ac4e5dea45d594fe575eb18c10f547eb9c611d91f1d62455d06f4e5d6f72e326 |
Hashes for zestreleaser.towncrier-1.0.0b2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05c624b875ed0d298830dae2d894c3e1a267e5f1dea356b57de127401113d231 |
|
MD5 | b7d8573f35b3e00fc884d76605819891 |
|
BLAKE2b-256 | e7f7cb3eb13b0c1a61084b1e8a554842e8a06ce0ed06c333277a393625776ab1 |