File: tox.ini

package info (click to toggle)
python-opentype-sanitizer 8.1.3.post1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 160 kB
  • sloc: python: 329; sh: 18; makefile: 3
file content (45 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (2)
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