From 87204e341e85209509be0fac79c72617697fd212 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Fri, 5 Apr 2024 20:31:41 +0200 Subject: [PATCH] releng: use pyproject.toml not towncrier.toml 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 --- releng/generate-release-notes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releng/generate-release-notes b/releng/generate-release-notes index b908b486c..af2ec2ca4 100755 --- a/releng/generate-release-notes +++ b/releng/generate-release-notes @@ -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)