-
Notifications
You must be signed in to change notification settings - Fork 67
/
tox.ini
76 lines (69 loc) · 1.88 KB
/
tox.ini
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[testenv:bootstrap]
deps =
jinja2
tox
skip_install = true
commands =
python ci/bootstrap.py --no-env
passenv =
*
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
[tox]
;skipsdist=True
envlist =
check,
; {py36,py37,py38,py39,pypy3},
; py{37,37,38,39}-opencv{34,40,41,42,43,44}-numpy{116,117,118,119,120,121}
{py36,py39}-{opencv34,opencv44}
ignore_basepython_conflict = true
[testenv]
basepython =
pypy3: {env:TOXPYTHON:pypy3}
py36: {env:TOXPYTHON:python3.6}
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
{bootstrap,clean,check,report}: {env:TOXPYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = false
allowlist_externals = mkdir
;deps =
; pytest
; pytest-travis-fold
; pytest-cov
commands =
mkdir -p out
calibrate.py example_input/chessboard.avi calibration.yaml --max-frames 10
undistort.py calibration.yaml 'example_input/*.png' out/
deps =
opencv34: opencv-python-headless>=3.4,<3.5
opencv40: opencv-python-headless>=4.0,<4.1
opencv41: opencv-python-headless>=4.1,<4.2
opencv42: opencv-python-headless>=4.2,<4.3
opencv43: opencv-python-headless>=4.3,<4.4
opencv44: opencv-python-headless>=4.4,<4.5
; numpy116: numpy>=1.16,<1.17
; numpy117: numpy>=1.17,<1.18
; numpy118: numpy>=1.18,<1.19
; numpy119: numpy>=1.19,<1.20
; numpy120: numpy>=1.20,<1.21
; numpy121: numpy>=1.21,<1.22
; {posargs:pytest --cov --cov-report=term-missing -vv tests}
[testenv:check]
deps =
docutils
check-manifest
flake8
readme-renderer
pygments
isort
skip_install = true
commands =
python setup.py check --strict --metadata
; check-manifest {toxinidir}
flake8
isort --verbose --check-only --diff --filter-files .