Skip to content

Commit

Permalink
Add "remove" towncrier category.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Mar 15, 2023
1 parent 5ebfd22 commit 2f047cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions news/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ 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"


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.

Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-news-fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2f047cc

Please sign in to comment.