1[tox] 2envlist = py26, py27, py33, py34, py35, pypy, flake8 3 4[testenv] 5commands = py.test {posargs:requests_unixsocket/tests} 6deps = 7 -r{toxinidir}/requirements.txt 8 -r{toxinidir}/test-requirements.txt 9 10[testenv:flake8] 11commands = flake8 12deps = 13 flake8 14 {[testenv]deps} 15 16[testenv:venv] 17commands = {posargs} 18 19[testenv:coverage] 20commands = 21 coverage erase 22 coverage run --source requests_unixsocket -m py.test requests_unixsocket/tests 23 coverage report --show-missing 24 coverage html 25deps = 26 coverage 27 {[testenv]deps} 28 29[testenv:doctest] 30# note this only works under python 3 because of unicode literals 31commands = 32 python -m doctest README.rst 33 34[testenv:sphinx-doctest] 35# note this only works under python 3 because of unicode literals 36commands = 37 mkdir build/sphinx/doctest 38 sphinx-build -b doctest docs build/sphinx/doctest 39deps = 40 pbr 41 {[testenv]deps} 42 43[testenv:docs] 44commands = python setup.py build_sphinx 45 46[flake8] 47max_line_length = 79 48exclude = .git,.tox,dist,docs,*egg 49