1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
import os
import platform
PY3_EARLIEST = 8
PY3_LATEST = 13
try:
REQUESTED_PYTHON_VERSIONS = [
tuple(int(_) for _ in v.split("."))
for v in os.getenv("AUSTIN_TESTS_PYTHON_VERSIONS", "").split(",")
]
except Exception:
REQUESTED_PYTHON_VERSIONS = None
match platform.system():
case "Darwin":
PYTHON_VERSIONS = REQUESTED_PYTHON_VERSIONS or [
(3, _) for _ in range(PY3_EARLIEST, PY3_LATEST + 1)
]
case _:
PYTHON_VERSIONS = REQUESTED_PYTHON_VERSIONS or [
(3, _) for _ in range(PY3_EARLIEST, PY3_LATEST + 1)
]
|