mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Remove version checks from tag script
Not needed since we're using the version from scm.
This commit is contained in:
parent
f54b6ac9d7
commit
880848fae3
@ -16,7 +16,6 @@ import toot
|
|||||||
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from os import path
|
from os import path
|
||||||
from pkg_resources import get_distribution
|
|
||||||
|
|
||||||
path = path.join(path.dirname(path.dirname(path.abspath(__file__))), "changelog.yaml")
|
path = path.join(path.dirname(path.dirname(path.abspath(__file__))), "changelog.yaml")
|
||||||
with open(path, "r") as f:
|
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)
|
print(f"Version `{version}` not found in changelog.", file=sys.stderr)
|
||||||
sys.exit(1)
|
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"]
|
release_date = changelog_item["date"]
|
||||||
description = changelog_item.get("description")
|
description = changelog_item.get("description")
|
||||||
changes = changelog_item["changes"]
|
changes = changelog_item["changes"]
|
||||||
|
Loading…
Reference in New Issue
Block a user