[pytest]
DJANGO_SETTINGS_MODULE=oauth2_provider.tests.settings
testpaths=oauth2_provider

[tox]
envlist =
    py27-django{18,19,110},
    py32-django18,
    py33-django18,
    py35-django{18,19,110,master},
    py36-djangomaster,
    docs,
    flake8

[testenv]
commands=python runtests.py -q --cov=oauth2_provider --cov-report= --cov-append
deps =
    django18: Django==1.8.17
    django19: Django==1.9.12
    django110: Django==1.10.5
    djangomaster: https://github.com/django/django/archive/master.tar.gz
    -rrequirements/testing.txt

[testenv:docs]
basepython=python
changedir=docs
whitelist_externals=make
deps =
    sphinx
commands=make html

[testenv:flake8]
deps =
    flake8
commands =
    flake8 oauth2_provider

[flake8]
max-line-length = 120
exclude = docs,migrations,.tox

[pytest]
DJANGO_SETTINGS_MODULE=oauth2_provider.tests.settings
testpaths=oauth2_provider

[tox]
envlist =
    py27-django{18,19,110},
    py35-django{18,19,110,master},
    py36-djangomaster,
    docs,
    flake8

[testenv]
commands=python runtests.py -q --cov=oauth2_provider --cov-report= --cov-append
deps =
    django18: Django==1.8.17
    django19: Django==1.9.12
    django110: Django==1.10.5
    djangomaster: https://github.com/django/django/archive/master.tar.gz
    -rrequirements/testing.txt

[testenv:docs]
basepython=python
changedir=docs
whitelist_externals=make
deps =
    sphinx
commands=make html

[testenv:flake8]
deps =
    flake8
commands =
    flake8 oauth2_provider

[flake8]
max-line-length = 120
exclude = docs,migrations,.tox

Drop tests on Python 3.2 and 3.3
Drop tests on Python 3.2 and 3.3
