[tox]
envlist = py27,py34,py35,py36,py37,pypy,pypy3,docs,readme,bandit

[testenv]
deps=
    -rrequirements-test.txt
commands=
    py.test --cov=oauthlib tests/


# tox -e docs to mimick readthedocs build.
# as of today, RTD is using python2.7 and doesn't run "setup.py install"
[testenv:docs]
basepython=python2.7
skipsdist=True
deps=sphinx
changedir=docs
whitelist_externals=make
commands=make clean html

# tox -e readme to mimick PyPI long_description check
[testenv:readme]
skipsdist=True
deps=readme
whitelist_externals=echo
commands=
        python setup.py check -r -s
        echo setup.py/long description is syntaxly correct

[testenv:bandit]
basepython=python3.6
skipsdist=True
deps=bandit
commands=bandit -b bandit.json -r oauthlib/
whitelist_externals=bandit

[tox]
envlist = py27,py34,py35,py36,py37,pypy,pypy3,docs,readme,bandit

[testenv]
deps=
    -rrequirements-test.txt
commands=
    py.test --cov=oauthlib tests/


# tox -e docs to mimick readthedocs build.
# as of today, RTD is using python2.7 and doesn't run "setup.py install"
[testenv:docs]
basepython=python2.7
skipsdist=True
deps=sphinx
changedir=docs
whitelist_externals=make
commands=make clean html

# tox -e readme to mimick PyPI long_description check
[testenv:readme]
skipsdist=True
deps=readme
whitelist_externals=echo
commands=
        python setup.py check -r -s
        echo setup.py/long description is syntaxly correct

[testenv:bandit]
basepython=python2.7
skipsdist=True
deps=bandit
commands=bandit -b bandit.json -r oauthlib/
whitelist_externals=bandit

Downgrade python to match with Travis
Downgrade python to match with Travis
