pyo3/examples/pyo3-pytests/tox.ini
2021-04-29 08:52:01 +01:00

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}