We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db97a00 commit db5b63bCopy full SHA for db5b63b
2 files changed
.github/workflows/run-test.yaml
@@ -15,9 +15,10 @@ jobs:
15
strategy:
16
matrix:
17
python-version:
18
- - "3.9"
+ - "3.10"
19
sqlalchemy:
20
- sqla_release
21
+ - sqla_rel_1_4
22
- sqla_main
23
24
fail-fast: false
.github/workflows/scripts/find_version.py
@@ -3,7 +3,7 @@
3
from urllib import request
4
5
6
-def go(argv):
+def go(argv: list[str]):
7
if "sqla_release" in argv:
8
result = request.urlopen(
9
"https://pypi.org/pypi/SQLAlchemy/json", timeout=10
@@ -13,7 +13,13 @@ def go(argv):
13
version = parsed["info"]["version"]
14
print(f"rel_{version}".replace(".", "_"))
else:
- print("main")
+ for part in argv:
+ if part.startswith("sqla_"):
+ part = part.partition("sqla_")[-1]
+ print(part)
+ break
+ else:
+ print("main")
25
if __name__ == "__main__":
0 commit comments