Skip to content

Commit

Permalink
release: 1.5.0
Browse files Browse the repository at this point in the history
* Fix the towncrier template to correctly generate version & dates.
  • Loading branch information
achimnol committed Mar 6, 2022
1 parent b5b84fe commit eb74cf3
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
12 changes: 11 additions & 1 deletion CHANGES.md
Expand Up @@ -14,7 +14,17 @@ Changelog
WARNING: Don't drop the last line!
-->

.. towncrier release notes start
<!-- towncrier release notes start -->

1.5.0 (2022-03-06)
------------------

### Features
* Add support for Python 3.9's `msg` argument to `Task.cancel()`. ([#32](https://github.com/achimnol/aiotools/issues/32))
* Fix "unexpected cancel" bug in `TaskGroup`. ([#35](https://github.com/achimnol/aiotools/issues/35))
* 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))
* Add `PersistentTaskGroup.all()` to enumerate all non-terminated persistent task groups ([#38](https://github.com/achimnol/aiotools/issues/38))


1.4.0 (2022-01-10)
------------------
Expand Down
1 change: 0 additions & 1 deletion changes/32.feature.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/35.feature.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/36.feature.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/38.feature.md

This file was deleted.

11 changes: 10 additions & 1 deletion changes/template.md
@@ -1,11 +1,20 @@
{% if top_line %}
{{ top_line }}
{{ top_underline * ((top_line)|length)}}
{% elif versiondata.name %}
{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }})
{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}}
{% else %}
{{ versiondata.version }} ({{ versiondata.date }})
{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}}
{% endif %}
{%- 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'] %}
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
@@ -1,9 +1,12 @@
[tool.towncrier]
package = "aiotools"
package_dir = "src"
name = "aiotools"
filename = "CHANGES.md"
directory = "changes/"
title_format = "{version} ({project_date})"
template = "changes/template.md"
start_string = "<!-- towncrier release notes start -->\n"
title_format = "{version} ({project_date})"
issue_format = "([#{issue}](https://github.com/achimnol/aiotools/issues/{issue}))"
underlines = ["-", "", ""]

Expand Down
2 changes: 1 addition & 1 deletion src/aiotools/VERSION
@@ -1 +1 @@
1.4.0
1.5.0

0 comments on commit eb74cf3

Please sign in to comment.