Skip to content

Commit eb74cf3

Browse files
committed
release: 1.5.0
* Fix the towncrier template to correctly generate version & dates.
1 parent b5b84fe commit eb74cf3

8 files changed

+26
-8
lines changed

CHANGES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ Changelog
1414
WARNING: Don't drop the last line!
1515
-->
1616

17-
.. towncrier release notes start
17+
<!-- towncrier release notes start -->
18+
19+
1.5.0 (2022-03-06)
20+
------------------
21+
22+
### Features
23+
* Add support for Python 3.9's `msg` argument to `Task.cancel()`. ([#32](https://github.com/achimnol/aiotools/issues/32))
24+
* Fix "unexpected cancel" bug in `TaskGroup`. ([#35](https://github.com/achimnol/aiotools/issues/35))
25+
* Rewrite PersistentTaskGroup to use Python 3.11's latest additions such as `Task.uncancel()` and `Task.cancelling()` while still supporting older Python versions ([#36](https://github.com/achimnol/aiotools/issues/36))
26+
* Add `PersistentTaskGroup.all()` to enumerate all non-terminated persistent task groups ([#38](https://github.com/achimnol/aiotools/issues/38))
27+
1828

1929
1.4.0 (2022-01-10)
2030
------------------

changes/32.feature.md

-1
This file was deleted.

changes/35.feature.md

-1
This file was deleted.

changes/36.feature.md

-1
This file was deleted.

changes/38.feature.md

-1
This file was deleted.

changes/template.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
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
{%- if section %}
313
## {{ section }}
414
{%- endif -%}
515
{%- if sections[section] -%}
616
{%- for category, val in definitions.items() if category in sections[section] %}
717

8-
918
### {{ definitions[category]['name'] }}
1019

1120
{%- if definitions[category]['showcontent'] %}

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[tool.towncrier]
22
package = "aiotools"
3+
package_dir = "src"
4+
name = "aiotools"
35
filename = "CHANGES.md"
46
directory = "changes/"
5-
title_format = "{version} ({project_date})"
67
template = "changes/template.md"
8+
start_string = "<!-- towncrier release notes start -->\n"
9+
title_format = "{version} ({project_date})"
710
issue_format = "([#{issue}](https://github.com/achimnol/aiotools/issues/{issue}))"
811
underlines = ["-", "", ""]
912

src/aiotools/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.5.0

0 commit comments

Comments
 (0)