@@ -360,21 +360,26 @@ def run_tox(task, version):
360
360
361
361
362
362
# See update_python_versions() above
363
+ # When adding or removing a version, also update the env lists in tox.ini and
364
+ # workflows/main.yml, and the corresponding @python_tests function below.
363
365
PY36 = "3.6.15"
364
366
PY37 = "3.7.12"
365
367
PY38 = PYMAIN = "3.8.12" # Sync PYMAIN minor version with GH Actions main.yml
366
368
PY39 = "3.9.7"
367
369
PY310 = "3.10.0"
368
370
PYPY36 = "pypy3.6-7.3.3"
369
- PYPY37 = "pypy3.7-7.3.5"
371
+ PYPY37 = "pypy3.7-7.3.6"
372
+ PYPY38 = "pypy3.8-7.3.6"
370
373
371
374
372
375
# ALIASES are the executable names for each Python version
373
- ALIASES = {PYPY36 : "pypy3" , PYPY37 : "pypy3" }
374
-
375
- for n in [PY36 , PY37 , PY38 , PY39 , PY310 ]:
376
- major , minor , patch = n .replace ("-dev" , "." ).split ("." )
377
- ALIASES [n ] = f"python{ major } .{ minor } "
376
+ ALIASES = {}
377
+ for name , value in list (globals ().items ()):
378
+ if name .startswith ("PYPY" ):
379
+ ALIASES [value ] = "pypy3"
380
+ elif name .startswith ("PY" ):
381
+ major , minor , patch = value .replace ("-dev" , "." ).split ("." )
382
+ ALIASES [value ] = f"python{ major } .{ minor } "
378
383
379
384
380
385
python_tests = task (
@@ -422,6 +427,11 @@ def check_pypy37():
422
427
run_tox ("pypy3-full" , PYPY37 )
423
428
424
429
430
+ @python_tests
431
+ def check_pypy38 ():
432
+ run_tox ("pypy3-full" , PYPY38 )
433
+
434
+
425
435
def standard_tox_task (name ):
426
436
TASKS ["check-" + name ] = python_tests (lambda : run_tox (name , PYMAIN ))
427
437
0 commit comments