1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
[tox]
dist_name = opentype_sanitizer
envlist = py37
minversion = 3.4.0
isolated_build = true
[testenv]
description = run the tests with pytest under {basepython}
download = true
extras = testing
commands =
pytest {posargs}
[testenv:py27]
description = run the tests with pytest under python2.7 (build wheel first)
basepython = {env:TOX_PYTHON_27:python2.7}
deps =
pytest
skip_install = true
changedir = {toxinidir}
commands =
pip install --no-index --find-links dist --only-binary {[tox]dist_name} {[tox]dist_name}
pytest {posargs}
[testenv:wheel]
description = build py2.py3 universal binary wheel
deps =
pip
setuptools
setuptools-scm
wheel
meson==0.55.2
ninja
skip_install = true
commands =
pip wheel --no-build-isolation --use-deprecated legacy-resolver \
-w dist --no-deps --pre --find-links {distdir} \
--no-cache-dir --no-binary {[tox]dist_name} {[tox]dist_name}
[pytest]
testpaths =
tests
addopts =
-v
-r a
|