summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 040d827212ebfaa644bcb536de2e0919862f73fc (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
# 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

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

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

[testenv:ipv6]
basepython = python
setenv =
    {[testenv]setenv}
    eventlet_test_ipv6 = 1
deps =
    coverage==4.5.1
    nose3==1.3.8
usedevelop = True
commands =
    pip install -e .
    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 = python3
setenv =
    {[testenv]setenv}
deps =
    pycodestyle==2.1.0
usedevelop = False
commands =
    pycodestyle benchmarks/ eventlet/ tests/

[testenv]
passenv =
    CI
    EVENTLET_DB_TEST_AUTH
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
deps =
    coverage==4.5.1
    nose3==1.3.8
    py27-{selects,poll,epolls}: pyopenssl==19.1.0
    py27: mysqlclient==1.4.6
    py{27,35}: setuptools==38.5.1
    py27: subprocess32==3.2.7
    py38-openssl: pyopenssl==20.0.0
    pypy{2,3}: psycopg2cffi-compat==1.1
    py{27,35}-{selects,poll,epolls}: pyzmq==19.0.2
    py{36,37,38,39}-{selects,poll,epolls}: pyzmq==21.0.2
    py{27,35,36,37}: psycopg2-binary==2.7.7
    py{35,36,37,38,39,310,311}: mysqlclient==2.0.3
    py{38,39}: psycopg2-binary==2.8.4
    py{310,311}: psycopg2-binary==2.9.5
    py{310,311}: pyzmq==25.0.0
    dnspython1: dnspython<2
usedevelop = True
commands =
    pip install -e .
    nosetests --verbose {env:tox_cover_args} {posargs:tests/}
    coverage xml -i