-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
73 lines (60 loc) · 1.78 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
[tox]
envlist =
cov-init,
py{27,34}-mpl{13,14,15,20,21,22},
py{35}-mpl{14,15,20,21,22,30},
py{36}-mpl{20,21,22,30,31,32,33},
py{37}-mpl{22,30,31,32,33,34,35},
py{38}-mpl{32,33,34,35},
py{39}-mpl{34,35},
cov-end
[testenv]
deps =
pytest
mpl13: numpy>=1.7,<1.8
mpl13: tornado<=4.5
mpl14: numpy>=1.16,<1.17
py34: attrs<=18.3
py34: execnet<=1.3
mpl13: matplotlib>=1.3,<1.4
mpl14: matplotlib>=1.4,<1.5
mpl15: matplotlib>=1.5,<1.6
mpl20: matplotlib>=2.0,<2.1
mpl21: matplotlib>=2.1,<2.2
mpl22: matplotlib>=2.2,<2.3
mpl30: matplotlib>=3.0,<3.1
mpl31: matplotlib>=3.1,<3.2
mpl32: matplotlib>=3.2,<3.3
mpl33: matplotlib>=3.3,<3.4
mpl34: matplotlib>=3.4,<3.5
mpl35: matplotlib>=3.5,<3.6
install_command =
; pip cannot handle the correct install order between matplotlib and numpy,
; etc., thus messing up the required versions of numpy, etc., so we
; explicitly install dependencies first.
mpl13: bash {toxinidir}/tox_ordered_deps.sh --optsbeg {opts} --optsend 2 "numpy>=1.7,<1.8" "tornado<=4.5" {packages}
mpl14: bash {toxinidir}/tox_ordered_deps.sh --optsbeg {opts} --optsend 1 "numpy>=1.16,<1.17" {packages}
pip install {opts} {packages}
whitelist_externals =
/bin/bash
/bin/rm
commands =
rm -rf result_images
pytest \
--basetemp {envtmpdir} \
{env:COVOPTS:}
passenv =
DISPLAY XAUTHORITY HOME USER XDG_*
GITHUB_*
setenv =
; Disable hash randomization.
PYTHONHASHSEED = 0
; Exclude py34 from coverage data since it requires an old and incompatible
; version of the coverage package.
!py34: COVOPTS = --cov=easypyplot --cov-append
[testenv:cov-init]
commands =
coverage erase
[testenv:cov-end]
commands =
coverage report