Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 4964061

Browse files
committed
Updated towncrier configuration.
1 parent 46c1afd commit 4964061

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

changes/template.rst

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,42 @@
1+
{% if top_line %}
2+
{{ top_line }}
3+
{{ top_underline * ((top_line)|length)}}
4+
{% elif versiondata.name %}
5+
{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }})
6+
{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}}
7+
{% else %}
8+
{{ versiondata.version }} ({{ versiondata.date }})
9+
{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}}
10+
{% endif %}
111
{% for section, _ in sections.items() %}
212
{% set underline = underlines[0] %}{% if section %}{{section}}
313
{{ underline * section|length }}{% set underline = underlines[1] %}
14+
415
{% endif %}
16+
517
{% if sections[section] %}
618
{% for category, val in definitions.items() if category in sections[section]%}
7-
819
{{ definitions[category]['name'] }}
920
{{ underline * definitions[category]['name']|length }}
1021

1122
{% if definitions[category]['showcontent'] %}
1223
{% for text, values in sections[section][category].items() %}
1324
* {{ text }} ({{ values|join(', ') }})
1425
{% endfor %}
26+
1527
{% else %}
1628
* {{ sections[section][category]['']|join(', ') }}
29+
1730
{% endif %}
1831
{% if sections[section][category]|length == 0 %}
1932
No significant changes.
33+
34+
{% else %}
2035
{% endif %}
36+
2137
{% endfor %}
2238
{% else %}
23-
2439
No significant changes.
40+
2541
{% endif %}
26-
{% endfor %}
42+
{% endfor %}

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ build-backend = "setuptools.build_meta"
88
[tool.towncrier]
99
directory = "changes"
1010
package = "gbulb"
11+
package_dir = "src"
1112
filename = "CHANGELOG.rst"
1213
title_format = "{version} ({project_date})"
13-
issue_format = "`#{issue} <https://github.com/beeware/gbulb/issues/{issue}>`_"
14+
issue_format = "`#{issue} <https://github.com/beeware/gbulb/issues/{issue}>`__"
1415
template = "changes/template.rst"
1516
underlines = ["-", "^", "\""]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ commands =
3333
[testenv:towncrier]
3434
skip_install = True
3535
deps =
36-
towncrier >= 18.5.0
36+
towncrier == 21.9.0
3737
commands =
38-
towncrier {posargs}
38+
towncrier build {posargs}
3939

4040
[testenv:docs]
4141
deps =

0 commit comments

Comments
 (0)