Skip to content

Commit

Permalink
Update towncrier to >= 21.3.0.
Browse files Browse the repository at this point in the history
Said version made a breaking change - to move the version headings into the
jinja2 template so that anyone using a custom template (like us) is short of a
title. This commit adds the title to our own custom template and pins the
towncrier verion to >= 21.3.0 so that we don't accidently get two titles.

See twisted/towncrier#147 and
twisted/towncrier#340 for details.
  • Loading branch information
bwoodsend committed Oct 4, 2021
1 parent ae7ed8e commit 3230524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/_template.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ versiondata.version }} ({{ versiondata.date }})
{{ top_underline * ((versiondata.version + versiondata.date)|length + 4)}}
{% macro print_issue_numbers(issues) %}
{% for issue in issues if issue.startswith('#') %}
{% if loop.first %} ({% endif %}
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-developer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pycmd # Contains 'py.cleanup' that removes all .pyc files and similar.
wheel>0.24.0 # For creating .whl packages
twine # For secure upload of tar.gz to PYPI.

towncrier>=19.2.0 # For creating the change-log file.
towncrier>=21.3.0 # For creating the change-log file.

zest.releaser>=6.18 # Makes releasing easier
# Addons for zest.releaser:
Expand Down

0 comments on commit 3230524

Please sign in to comment.