[tox] envlist = flake8-py3, py26, py27, py34, py35, py36, py37, pypy [testenv] deps= -r{toxinidir}/dev-requirements.txt commands= # Print out the python version and bitness pip --version python --version python -c "import struct; print(struct.calcsize('P') * 8)" pip install .[socks,secure] py.test -r sx --cov urllib3 test {posargs} setenv = PYTHONWARNINGS=always::DeprecationWarning passenv = CFLAGS LDFLAGS TRAVIS APPVEYOR CRYPTOGRAPHY_OSX_NO_LINK_FLAGS [testenv:py26] # Additional dependency on unittest2 for Python 2.6 deps= {[testenv]deps} unittest2 [testenv:gae] basepython = python2.7 deps= {[testenv]deps} commands= py.test -r sx test/appengine {posargs} setenv = GAE_SDK_PATH={env:GAE_SDK_PATH:} {[testenv]setenv} [testenv:flake8-py3] basepython = python3.4 deps= flake8 commands= flake8 --version flake8 setup.py docs dummyserver urllib3 test [testenv:docs] basepython = python2.7 deps= -r{toxinidir}/docs/requirements.txt commands= rm -rf {toxinidir}/docs/_build make -C {toxinidir}/docs html whitelist_externals= make rm