Skip to content

Commit

Permalink
Merge pull request #35 from praw-dev/LilSpazJoekp-patch-1
Browse files Browse the repository at this point in the history
Update set_version.py
  • Loading branch information
LilSpazJoekp authored Jun 15, 2021
2 parents eb89024 + 01be93e commit 40779be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/set_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

CHANGELOG_HEADER = "Change Log\n==========\n\n"
UNRELEASED_HEADER = "Unreleased\n----------\n\n"
MESSAGE = "asyncprawcore follows `semantic versioning <http://semver.org/>`_ with the exception\nthat deprecations will not be announced by a minor release.\n\n"


def add_unreleased_to_changelog():
Expand Down Expand Up @@ -72,7 +71,7 @@ def update_changelog(version):
with open("CHANGES.rst") as fp:
content = fp.read()

expected_header = f"{CHANGELOG_HEADER}{MESSAGE}{UNRELEASED_HEADER}"
expected_header = f"{CHANGELOG_HEADER}{UNRELEASED_HEADER}"
if not content.startswith(expected_header):
sys.stderr.write("CHANGES.rst does not contain Unreleased header.\n")
return False
Expand Down

0 comments on commit 40779be

Please sign in to comment.