Building the Changelog#
The changelog is built from news fragments that are added to the repository. These fragments are collected and assembled into a changelog file for each new release.
To build the changelog, make sure you have:
added news fragments (see Adding News Fragments)
updated the project (see Updating the Project)
If needed, bump the version.
Build the changelog file from all news fragments:
Build a combined changelog from news fragments#towncrier build [--yes]
After this command, the
CHANGELOG.rst
file in the root directory is updated and all news fragments are removed from the directorychangelog.d/
.Review the
CHANGELOG.rst
file. Sometimes the changelog may not look as expected, especially if the news fragments are not formatted correctly. You can edit the file manually to fix any issues.Commit the
CHANGELOG.rst
and thechangelog.d/
directory with a message that describes the change.