File: __init__.py

package info (click to toggle)
austin 3.7.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,444 kB
  • sloc: ansic: 8,622; python: 2,669; sh: 106; makefile: 54
file content (24 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
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)
        ]