Run `towncrier build` instead of `towncrier`

Newer versions of towncrier exit eagerly, when `towncrier --version` is
run only printing the version and not actually doing any news file
generation.
This commit is contained in:
Pradyun Gedam 2022-05-03 11:56:30 +01:00
parent f51d471eb4
commit b881c2ae50
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def commit_file(session: Session, filename: str, *, message: str) -> None:
def generate_news(session: Session, version: str) -> None:
session.install("towncrier")
session.run("towncrier", "--yes", "--version", version, silent=True)
session.run("towncrier", "build", "--yes", "--version", version, silent=True)
def update_version_file(version: str, filepath: str) -> None: