Skip to content

Commit

Permalink
Fix tools
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Nov 27, 2023
1 parent c7a9fd9 commit 6fc932b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Change Log
==========

asyncprawcore follows `semantic versioning <http://semver.org/>`_.
asyncprawcore follows `semantic versioning <https://semver.org/>`_.

Unreleased
----------
Expand Down
1 change: 1 addition & 0 deletions tools/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def main():
)
return 1
print(line[len(COMMIT_PREFIX) : -1])
return 0


if __name__ == "__main__":
Expand Down
5 changes: 1 addition & 4 deletions tools/set_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

CHANGELOG_HEADER = (
"Change Log\n==========\n\n"
"asyncprawcore follows `semantic versioning <http://semver.org/>`_.\n\n"
"asyncprawcore follows `semantic versioning <https://semver.org/>`_.\n\n"
)
UNRELEASED_HEADER = "Unreleased\n----------\n\n"

Expand Down Expand Up @@ -106,9 +106,6 @@ def update_package(version):

def valid_version(version):
parsed_version = packaging.version.parse(version)
if isinstance(parsed_version, packaging.version.LegacyVersion):
sys.stderr.write(f"Invalid PEP 440 version: {version}\n")
return False
if parsed_version.local or parsed_version.is_postrelease or parsed_version.epoch:
sys.stderr.write("epoch, local postrelease version parts are not supported")
return False
Expand Down

0 comments on commit 6fc932b

Please sign in to comment.