summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 19caacc2353b54e80c1ba4c1eb5280596ab65731 (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
# 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*,mock.py,eventlet/green/http/*
ignore = E261,E402,E731,W503
max-line-length = 123

[pep8]
count = 1
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,mock.py,eventlet/green/http/*
ignore = E261,E402,E731,W503
max-line-length = 123
show-source = 1
statistics = 1

[tox]
minversion=2.5
envlist =
    ipv6, pep8, py{27,35,36,37,38,39,py2,py3}-{selects,poll,epolls}, py38-openssl

[testenv:ipv6]
basepython = python
setenv =
    {[testenv]setenv}
    eventlet_test_ipv6 = 1
deps =
    coverage==4.5.1
    nose==1.3.7
    setuptools==38.5.1
commands =
    nosetests --verbose {env:tox_cover_args} \
        tests.backdoor_test:BackdoorTest.test_server_on_ipv6_socket \
        tests.wsgi_test:TestHttpd.test_ipv6
    coverage xml -i

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

[testenv]
passenv = CI
setenv =
    PYTHONDONTWRITEBYTECODE = 1
    selects: EVENTLET_HUB = selects
    poll: EVENTLET_HUB = poll
    epolls: EVENTLET_HUB = epolls
    tox_cover_args = --with-coverage --cover-erase --cover-package=eventlet
basepython =
    py27: python2.7
    py35: python3.5
    py36: python3.6
    py37: python3.7
    py38: python3.8
    py39: python3.9
    pypy2: pypy2
    pypy3: pypy3
deps =
    coverage==4.5.1
    nose==1.3.7
    py27-{selects,poll,epolls}: MySQL-python==1.2.5
    py27: subprocess32==3.2.7
    pypy{2,3}: psycopg2cffi-compat==1.1
    py{27,35,36,37}: psycopg2-binary==2.7.4
    py{38,39}: psycopg2-binary==2.8.4
    py38-openssl: pyopenssl==20.0.0
    py27-{selects,poll,epolls}: pyopenssl==19.1.0
    setuptools==38.5.1
    {selects,poll,epolls}: pyzmq==19.0.2
commands =
    nosetests --verbose {env:tox_cover_args} {posargs:tests/}
    coverage xml -i