Skip to content

Commit

Permalink
releng: use pyproject.toml not towncrier.toml
Browse files Browse the repository at this point in the history
According to the towncrier documentation
https://towncrier.readthedocs.io/en/23.11.0/tutorial.html

> towncrier keeps its config in the PEP-518 pyproject.toml or a
> towncrier.toml file. If the latter exists, it takes precedence.

In our case, we don't have towncrier.toml, only pyproject.toml
  • Loading branch information
FrostyX authored and praiskup committed Apr 8, 2024
1 parent b45aaea commit 87204e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion releng/generate-release-notes
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _limited_config(opts):
return []
with tempfile.NamedTemporaryFile(delete=False, dir=".") as config_fd:
opts.temp_config = config_fd.name
with open("towncrier.toml", "rb") as fd:
with open("pyproject.toml", "rb") as fd:
for line in fd.readlines():
if b'{ name' not in line:
config_fd.write(line)
Expand Down

0 comments on commit 87204e3

Please sign in to comment.