From 2f047ccb134b2b4514ab2ae0dee58a2103f70a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Br=C3=A9nainn=20Woodsend?= Date: Tue, 14 Mar 2023 23:00:17 +0000 Subject: [PATCH] Add "remove" towncrier category. --- news/README.txt | 5 +++-- pyproject.toml | 5 +++++ scripts/verify-news-fragments.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/news/README.txt b/news/README.txt index 73cfe6575..96992df74 100644 --- a/news/README.txt +++ b/news/README.txt @@ -8,10 +8,11 @@ When contributing to PyInstaller-hooks-contrib, you'll need to add a changelog f Entry types ----------- -There are 4 types of changelog entry: +There are 5 types of changelog entry: * "new" * "update" +* "remove" * "process" * "tests" @@ -19,7 +20,7 @@ There are 4 types of changelog entry: Use for each type +++++++++++++++++ -* Please use the "new" and "update" types for new or updated hooks respectively. +* Please use the "new", "update" and "remove" types for new, updated or removed hooks respectively. * The "process" type is for anything that doesn't fall into the other categories, but needs a changelog entry. diff --git a/pyproject.toml b/pyproject.toml index 40b37273a..b7baca6b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,11 @@ name = "Updated hooks" showcontent = true + [[tool.towncrier.type]] + directory = "remove" + name = "Removed hooks" + showcontent = true + [[tool.towncrier.type]] directory = "process" name = "Project & Process" diff --git a/scripts/verify-news-fragments.py b/scripts/verify-news-fragments.py index 84c1ba0d1..573806d42 100644 --- a/scripts/verify-news-fragments.py +++ b/scripts/verify-news-fragments.py @@ -26,7 +26,7 @@ "https://github.com/pyinstaller/pyinstaller-hooks-contrib/tree/master/news#readme" CHANGE_TYPES = { - 'new', 'update', 'process', 'tests' + 'new', 'update', 'remove', 'process', 'tests' } NEWS_PATTERN = re.compile(r"(\d+)\.(\w+)\.(?:(\d+)\.)?rst")