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 15
15
strategy :
16
16
matrix :
17
17
python-version :
18
- - " 3.9 "
18
+ - " 3.10 "
19
19
sqlalchemy :
20
20
- sqla_release
21
+ - sqla_rel_1_4
21
22
- sqla_main
22
23
23
24
fail-fast : false
Original file line number Diff line number Diff line change 3
3
from urllib import request
4
4
5
5
6
- def go (argv ):
6
+ def go (argv : list [ str ] ):
7
7
if "sqla_release" in argv :
8
8
result = request .urlopen (
9
9
"https://pypi.org/pypi/SQLAlchemy/json" , timeout = 10
@@ -13,7 +13,13 @@ def go(argv):
13
13
version = parsed ["info" ]["version" ]
14
14
print (f"rel_{ version } " .replace ("." , "_" ))
15
15
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" )
17
23
18
24
19
25
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments