File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1515 strategy :
1616 matrix :
1717 python-version :
18- - " 3.9 "
18+ - " 3.10 "
1919 sqlalchemy :
2020 - sqla_release
21+ - sqla_rel_1_4
2122 - sqla_main
2223
2324 fail-fast : false
Original file line number Diff line number Diff line change 33from urllib import request
44
55
6- def go (argv ):
6+ def go (argv : list [ str ] ):
77 if "sqla_release" in argv :
88 result = request .urlopen (
99 "https://pypi.org/pypi/SQLAlchemy/json" , timeout = 10
@@ -13,7 +13,13 @@ def go(argv):
1313 version = parsed ["info" ]["version" ]
1414 print (f"rel_{ version } " .replace ("." , "_" ))
1515 else :
16- print ("main" )
16+ for part in argv :
17+ if part .startswith ("sqla_" ):
18+ part = part .partition ("sqla_" )[- 1 ]
19+ print (part )
20+ break
21+ else :
22+ print ("main" )
1723
1824
1925if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments