Add needed information for towncrier

This commit is contained in:
Georg Krause 2021-07-02 19:04:47 +02:00 committed by Ryan Harg
parent e96626b5cf
commit 6d5f6b4dff
3 changed files with 72 additions and 0 deletions

View File

29
changes/template.rst Normal file
View File

@ -0,0 +1,29 @@
{% for section, _ in sections.items() %}
{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}
{{ definitions[category]['name'] }}:
{% if definitions[category]['showcontent'] %}
{% for text in sections[section][category].keys()|sort() %}
- {{ text }}
{% endfor %}
{% else %}
- {{ sections[section][category]['']|join(', ') }}
{% endif %}
{% if sections[section][category]|length == 0 %}
No significant changes.
{% else %}
{% endif %}
{% endfor %}
{% else %}
No significant changes.
{% endif %}
{% endfor %}

43
pyproject.toml Normal file
View File

@ -0,0 +1,43 @@
[tool.towncrier]
package = "changes"
package_dir = ""
filename = "CHANGELOG"
directory = "changes/changelog.d/"
start_string = ".. towncrier\n"
template = "changes/template.rst"
issue_format = ""
title_format = "{version} (unreleased)"
underlines = "-"
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "enhancement"
name = "Enhancements"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "i18n"
name = "i18n"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Other"
showcontent = true