Now use towncrier for changelog management

merge-requests/154/head
Eliot Berriot 2018-02-27 19:04:50 +01:00
rodzic 1304f3e3d8
commit 726bbf3032
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
7 zmienionych plików z 64 dodań i 5 usunięć

Wyświetl plik

@ -1,11 +1,7 @@
Changelog
=========
0.6 (Unreleased)
----------------
- Always use username in sidebar (#89)
- Fixed broken import because of missing transaction
.. towncrier
0.5.2 (2018-02-26)

Wyświetl plik

Wyświetl plik

@ -0,0 +1 @@
Always use username in sidebar (#89)

Wyświetl plik

@ -0,0 +1 @@
Switched to towncrier for changelog management and compilation

Wyświetl plik

@ -0,0 +1 @@
Fixed broken import because of missing transaction

Wyświetl plik

@ -0,0 +1,27 @@
{% 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 %}

33
pyproject.toml 100644
Wyświetl plik

@ -0,0 +1,33 @@
[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 = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Other"
showcontent = true