Rendering¶
Use Jinja2 to render an addition to the CHANGES file.
This should be the only file that needs to import Jinja2, so if you want to do something else for templating, you can.
- proclamation.render.combine_changelogs(before, after, project, project_version, release_date)[source]¶
Return the text of the updated, complete CHANGES/NEWS file given pre-split contents.
- proclamation.render.generate_updated_changelog(project, project_version, release_date=None)[source]¶
Return the text of the updated, complete CHANGES/NEWS file.
- proclamation.render.get_split_news_file(project_settings)[source]¶
Load configured NEWS file and return the content for before and after our new entry.
We make a minimal default if we can’t open the original.