From cb112ef9c12e16d2caaf71f7f0c067663499fddf Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Thu, 2 Jun 2022 15:36:24 -0700 Subject: [PATCH] Upgrade towncrier to fix the duplicate title bug --- Makefile | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d38ac9d9..bc398812 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ build-docs: $(MAKE) -C docs html $(MAKE) -C docs doctest ./newsfragments/validate_files.py - towncrier --draft --version preview + towncrier build --draft --version preview docs: build-docs open docs/_build/html/index.html @@ -63,7 +63,7 @@ notes: check-bump # Let UPCOMING_VERSION be the version that is used for the current bump $(eval UPCOMING_VERSION=$(shell bumpversion $(bump) --dry-run --list | grep new_version= | sed 's/new_version=//g')) # Now generate the release notes to have them included in the release commit - towncrier --yes --version $(UPCOMING_VERSION) + towncrier build --yes --version $(UPCOMING_VERSION) # Before we bump the version, make sure that the towncrier-generated docs will build make build-docs git commit -m "Compile release notes" diff --git a/setup.py b/setup.py index 38e0d78b..6f0abaf1 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ 'doc': [ "Sphinx>=1.6.5,<2", "sphinx_rtd_theme>=0.1.9,<1", - "towncrier>=19.2.0, <20", + "towncrier>=21,<22", ], 'dev': [ "bumpversion>=0.5.3,<1",