mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-26 02:22:13 -04:00
dc5d427a81
It's better, the majority of these changes look more readable to me. also found some docstrings that had formatting / quoting issues. Cross-implemented with master Change-Id: I582a45fde3a5648b2f36bab96bad56881321899b
26 lines
614 B
Python
26 lines
614 B
Python
import sys
|
|
|
|
from packaging import tags
|
|
|
|
to_check = "--"
|
|
found = False
|
|
if len(sys.argv) > 1:
|
|
to_check = sys.argv[1]
|
|
for t in tags.sys_tags():
|
|
start = "-".join(str(t).split("-")[:2])
|
|
if to_check.lower() == start:
|
|
print(
|
|
"Wheel tag {0} matches installed version {1}.".format(
|
|
to_check, t
|
|
)
|
|
)
|
|
found = True
|
|
break
|
|
if not found:
|
|
print(
|
|
"Wheel tag {0} not found in installed version tags {1}.".format(
|
|
to_check, [str(t) for t in tags.sys_tags()]
|
|
)
|
|
)
|
|
exit(1)
|