mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-10 19:00:25 -04:00
e860060866
This change includes mainly that the bracketed use within select() is moved to positional, and keyword arguments are removed from calls to the select() function. it does not yet fully address other issues such as keyword arguments passed to the table.select(). Additionally, allows False / None to both be considered as "disable" for all of select.correlate(), select.correlate_except(), query.correlate(), which establishes consistency with passing of ``False`` for the legact select(correlate=False) argument. Change-Id: Ie6c6e6abfbd3d75d4c8de504c0cf0159e6999108
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)
|