-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the project compatible with Towncrier >= 24.7
Towncrier 24.7 changed the way that its `find_fragments()` function works to accept a `Config` dataclass instead of specific components of the config. This commit adds a new version of the `lookup_towncrier_fragments()` helper function to use the new API, and chooses which one to use based on the version of Towncrier obtained from `importlib.metadata`. It also slightly changes the way that Towncrier config can be obtained: the previous `get_towncrier_config()` function (which returned a `dict`) is now renamed as `get_towncrier_config_as_dict()`, and `get_towncrier_config()` returns the new `Config` dataclass object. This API change should be ok as `get_towncrier_config()` was only called in one place before.
- Loading branch information
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters