summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 840582b4321115244b8b99c7e0c2b3f45b6aedab (plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# The flake8 and pep8 sections just contain configuration for corresponding tools.
# Checkers are not run implicitly.
[flake8]
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,six.py,mock.py
ignore = E261
max-line-length = 101

[pep8]
count = 1
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,six.py,mock.py
ignore = E261
max-line-length = 101
show-source = 1
statistics = 1

[tox]
envlist =
    pep8,
    py26selects,py26poll,py26epolls,
    py27selects,py27poll,py27epolls,
    py33selects,py33poll,py33epolls,
    py34selects,py34poll,py34epolls,
    pypyselects,pypypoll,pypyepolls,

[testenv]
downloadcache = {toxworkdir}/pip_download_cache
setenv =
    PYTHONDONTWRITEBYTECODE = 1
deps =
    nose==1.3.1
    psycopg2cffi-compat==1.1
    pyopenssl==0.13
    pyzmq==13.1.0
    setuptools==5.4.1
commands =
    nosetests --verbose tests/
    nosetests --verbose --with-doctest eventlet/coros.py eventlet/event.py \
        eventlet/pools.py eventlet/queue.py eventlet/timeout.py

[testenv:pep8]
basepython = python2.7
setenv =
    {[testenv]setenv}
deps =
    pep8==1.5.6
commands =
    pep8 benchmarks/ eventlet/ tests/

[testenv:py26selects]
basepython = python2.6
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = selects
deps =
    {[testenv]deps}
    MySQL-python==1.2.5

[testenv:py26poll]
basepython = python2.6
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = poll
deps =
    {[testenv]deps}
    MySQL-python==1.2.5

[testenv:py26epolls]
basepython = python2.6
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = epolls
deps =
    {[testenv]deps}
    MySQL-python==1.2.5

[testenv:py27selects]
basepython = python2.7
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = selects
deps =
    {[testenv]deps}
    MySQL-python==1.2.5

[testenv:py27poll]
basepython = python2.7
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = poll
deps =
    {[testenv]deps}
    MySQL-python==1.2.5

[testenv:py27epolls]
basepython = python2.7
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = epolls
deps =
    {[testenv]deps}
    MySQL-python==1.2.5

[testenv:py33selects]
basepython = python3.3
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = selects

[testenv:py33poll]
basepython = python3.3
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = poll

[testenv:py33epolls]
basepython = python3.3
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = epolls

[testenv:py34selects]
basepython = python3.4
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = selects

[testenv:py34poll]
basepython = python3.4
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = poll

[testenv:py34epolls]
basepython = python3.4
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = epolls

[testenv:pypyselects]
basepython = pypy
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = selects

[testenv:pypypoll]
basepython = pypy
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = poll

[testenv:pypyepolls]
basepython = pypy
setenv =
    {[testenv]setenv}
    EVENTLET_HUB = epolls