Skip to content

Commit

Permalink
fix version update script
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Apr 15, 2022
1 parent 3e542ac commit 31317b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,12 @@ def tag(session: Session) -> None:

changelog_file = ROOT / "docs" / "source" / "about" / "changelog.rst"
for line in changelog_file.read_text().splitlines():
if line == version:
if line == f"v{version}":
session.log(f"Found changelog section for version {version}")
break
else:
session.error(
f"No changelog entry for {version} in {changelog_file} - "
f"make sure you have a title section called {version}."
f"Something went wrong - could not find a title section for {version}"
)

if session.interactive:
Expand Down

0 comments on commit 31317b0

Please sign in to comment.