Add needed information for towncrier

housekeeping/remove-warnings
Georg Krause 2021-07-02 19:04:47 +02:00 zatwierdzone przez Ryan Harg
rodzic e96626b5cf
commit 6d5f6b4dff
3 zmienionych plików z 72 dodań i 0 usunięć

Wyświetl plik

Wyświetl plik

@ -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 100644
Wyświetl plik

@ -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