Remove version checks from tag script

Not needed since we're using the version from scm.
This commit is contained in:
Ivan Habunek 2024-04-13 09:06:00 +02:00
parent f54b6ac9d7
commit 880848fae3
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 0 additions and 10 deletions

View File

@ -16,7 +16,6 @@ import toot
from datetime import date
from os import path
from pkg_resources import get_distribution
path = path.join(path.dirname(path.dirname(path.abspath(__file__))), "changelog.yaml")
with open(path, "r") as f:
@ -33,15 +32,6 @@ if not changelog_item:
print(f"Version `{version}` not found in changelog.", file=sys.stderr)
sys.exit(1)
if toot.__version__ != version:
print(f"toot.__version__ is `{toot.__version__}`, expected {version}.", file=sys.stderr)
sys.exit(1)
dist_version = get_distribution('toot').version
if dist_version != version:
print(f"Version in setup.py is `{dist_version}`, expected {version}.", file=sys.stderr)
sys.exit(1)
release_date = changelog_item["date"]
description = changelog_item.get("description")
changes = changelog_item["changes"]