[tox]
min_version = 4.11.4
env_list =
    py311

[gh]
python =
    3.12 = py312
    3.11 = py311 #, type
    3.10 = py310
    3.9 = py39
    3.8 = py38

[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
deps =
    pytest>=7
    pytest-sugar
extras = test
commands =
    pytest {tty:--color=yes} {posargs}

[testenv:docs]
description = build documentation
extras = docs
commands =
  sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html
  python -c 'print(r"documentation available under file:\\{toxworkdir}{/}docs_out{/}index.html")'