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
|
[tox]
envlist =
flake8
py27-{tw121,tw132,tw154,tw162,twtrunk,asyncio}
pypy-{tw121,tw132,tw154,tw162,twtrunk,asyncio}
py33-{tw154,tw162,twtrunk,asyncio}
py34-{tw154,tw162,twtrunk,asyncio}
py35-{tw154,tw162,twtrunk,asyncio}
[testenv]
deps =
six
mock
pytest
coverage==4.0
; twisted dependencies
tw121: twisted==12.1.0
tw132: twisted==13.2.0
tw154: twisted==15.4.0
tw162: twisted==16.2.0
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
{tw121,tw132,tw154,tw162,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
changedir=test
# this is so that our combined coverage files all have the same paths
# for the txaio code; thanks ionelmc on #python
usedevelop=true
commands =
coverage run --parallel-mode --source=txaio {envbindir}/py.test -s --basetemp={envtmpdir}
[testenv:flake8]
deps =
flake8
changedir=.
commands =
flake8 --max-line-length=119 txaio/ test/
|