[tox]
envlist =
    {py27,py34,py35,py36}-{django18,django19,django110,django111}-{sqlite,postgres},
    flake8, coverage

[testenv]
basepython =
    py27: python2.7
    py34: python3.4
    py35: python3.5
    py36: python3.6
deps =
    django18: django>=1.8,<1.9
    django19: django>=1.9,<1.10
    django110: django>=1.10,<1.11
    django111: django>=1.11,<2.0
    postgres: psycopg2
setenv =
    PYTHONPATH = {toxinidir}
    DJANGO_SETTINGS_MODULE=tests.settings
    sqlite: TEST_DB_ENGINE=sqlite
    postgres: TEST_DB_ENGINE=postgres
commands = {envbindir}/django-admin.py test tests

[testenv:flake8]
basepython = python2.7
deps = flake8
commands = {envbindir}/flake8 {toxinidir}/timezone_field

[testenv:coverage]
basepython = python2.7
commands =
    coverage erase
    coverage run --include='*/timezone_field/*' {envbindir}/django-admin.py test tests
deps =
    coverage
    django>=1.11,<2.0
    psycopg2

[tox]
envlist =
    {py27,py34,py35,py36}-{django18,django19,django110,django111}-{sqlite,postgres},
    flake8, coverage

[testenv]
basepython =
    py27: python2.7
    py34: python3.4
    py35: python3.5
    py36: python3.6
deps =
    django18: django>=1.8,<1.9
    django19: django>=1.9,<1.10
    django110: django>=1.10,<1.11
    django111: django>=1.11,<2.0
    postgres: psycopg2-binary
setenv =
    PYTHONPATH = {toxinidir}
    DJANGO_SETTINGS_MODULE=tests.settings
    sqlite: TEST_DB_ENGINE=sqlite
    postgres: TEST_DB_ENGINE=postgres
commands = {envbindir}/django-admin.py test tests

[testenv:flake8]
basepython = python2.7
deps = flake8
commands = {envbindir}/flake8 {toxinidir}/timezone_field

[testenv:coverage]
basepython = python2.7
commands =
    coverage erase
    coverage run --include='*/timezone_field/*' {envbindir}/django-admin.py test tests
deps =
    coverage
    django>=1.11,<2.0
    psycopg2

Use psycopg2 in wheel format in tests
Use psycopg2 in wheel format in tests

Avoids an annoying warning message
