pyo3/examples/pyo3-pytests/tox.ini

15 lines
423 B
INI

[tox]
# can't install from sdist because local pyo3 repo can't be included in the sdist
skipsdist = true
[testenv]
description = Run the unit tests under {basepython}
deps =
pip>=21.1 # for in-tree-build
-rrequirements-dev.txt
commands =
# --use-feature=in-tree-build is necessary because this example is inside
# the PyO3 repo.
python -m pip install . --use-feature=in-tree-build
pytest {posargs}