| 1 | [tox] |
| 2 | envlist = py39,py310,py311,py312,py313,py314,py313t,py314t |
| 3 | |
| 4 | [testenv] |
| 5 | deps= |
| 6 | -r{toxinidir}/requirements-test.txt |
| 7 | commands= |
| 8 | pytest |
| 9 | |
| 10 | # Do not export PYTHON_GIL=0 as environment variable before running tox, |
| 11 | # that variable is applied to the Python interpreter that launches tox |
| 12 | # and not tests. It may cause tox to fail with an error like this: |
| 13 | # Fatal Python error: config_read_gil: Disabling the GIL is not supported by this build |
| 14 | # Python runtime state: preinitialized |
| 15 | [testenv:py313t,py314t] |
| 16 | setenv = |
| 17 | # Enforce that the GIL is disabled. In case some dependency |
| 18 | # tries to silently turn the GIL back on. |
| 19 | PYTHON_GIL = 0 |