forked from crossbario/autobahn-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
96 lines (77 loc) · 2.32 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist =
flake8
# CPython
py27-{tw154,tw187,twtrunk,asyncio}
py34-{tw154,tw187,twtrunk,asyncio}
py35-{tw154,tw187,twtrunk,asyncio}
py36-{tw154,tw187,twtrunk,asyncio}
py37-{tw154,tw187,twtrunk,asyncio}
# PyPy
pypy-{tw154,tw187,twtrunk,asyncio}
pypy3-{tw154,tw187,twtrunk,asyncio}
[flake8]
max-line-length = 119
[testenv]
deps =
mock
unittest2
coverage
pytest<3.3.0
; txaio
git+https://github.com/crossbario/txaio
; twisted dependencies
tw154: twisted==15.4.0
tw165: twisted==16.5.0
tw169: twisted==16.9.0
tw171: twisted==17.1.0
tw179: twisted==17.9.0
tw187: twisted==18.7.0
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
{tw154,tw165,tw169,tw171,tw179,tw187,twtrunk}: pytest-twisted
; asyncio dependencies
py26-asyncio: trollius>=2.0
py26-asyncio: ordereddict
py27-asyncio: trollius>=2.0
pypy-asyncio: trollius>=2.0
py33-asyncio: asyncio>=3.4.3
py33-asyncio: pytest_asyncio<0.6
py34-asyncio: pytest_asyncio<0.6
py35-asyncio: pytest_asyncio
py36-asyncio: pytest_asyncio
py37-asyncio: pytest_asyncio
pypy3-asyncio: pytest_asyncio
; aiohttp requires Python 3.4.2+
; py34-asyncio: pytest-aiohttp
; py35-asyncio: pytest-aiohttp
# http://tox.readthedocs.io/en/latest/config.html#confval-extras=MULTI-LINE-LIST
extras =
encryption
serialization
scram
nvx
commands =
sh -c "which python"
python -V
coverage --version
asyncio: coverage run --source {envsitepackagesdir}/autobahn/ {envbindir}/py.test -v {envsitepackagesdir}/autobahn/
tw154: coverage run --source {envsitepackagesdir}/autobahn/ {envbindir}/trial autobahn
tw165,tw169,tw171,tw179,tw187,twtrunk: coverage run --source {envsitepackagesdir}/autobahn/ -m twisted.trial autobahn
coverage report
whitelist_externals = sh
setenv =
PYUBJSON_NO_EXTENSION = 1
SODIUM_INSTALL = bundled
asyncio: USE_ASYNCIO = 1
tw154,tw165,tw169,tw171,tw179,tw187,twtrunk: USE_TWISTED = 1
[testenv:flake8]
skip_install = True
deps =
flake8
pep8-naming
commands =
sh -c "which python"
python -V
flake8 --version
; These ignores will be removed when they are fixed and we are flake8-clean
flake8 --ignore=E402,E501,E722,E741,N801,N802,N803,N805,N806,N815 autobahn