Add changelog management with towncrier

main
Georg Krause 2022-02-14 14:23:00 +01:00
parent 0b9c6a9149
commit 0ae2cfc735
No known key found for this signature in database
GPG Key ID: FD479B9A4D48E632
4 changed files with 47 additions and 0 deletions

View File

28
.changelog/template.md Normal file
View File

@ -0,0 +1,28 @@
{% for section, _ in sections.items() %}
{%- if section %}{{section}}{% endif -%}
{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}
### {{ definitions[category]['name'] }}
{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %}
- {{ values|join(', ') }} {{ 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 %}

8
CHANGELOG.md Normal file
View File

@ -0,0 +1,8 @@
# Changelog
## 1.0.0 (2021-02-04)
This is the first stable release. Its compatible to Funkwhale >= 1.0 and Mopidy >= 3.
For a list of features, please see README

11
pyproject.toml Normal file
View File

@ -0,0 +1,11 @@
[tool.towncrier]
package = "mopidy_funkwhale"
directory = ".changelog"
filename = "CHANGELOG.md"
all_bullets = true
template = ".changelog/changes/template.md"
start_string = "# Changelog\n"
issue_format = "[#{issue}](https://dev.funkwhale.audio/funkwhale/mopidy/-/issues/{issue})"
underlines = ["", ""]
title_format = "## {version} ({project_date})\n"