[tox]
envlist = py{27,37}-numpy{11,15,16}, flake

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/seabird
    USE_NCCONFIG = 0

commands =
    pip install -U pip
    python -c 'import seabird.utils; seabird.utils.sampledata()'
    pytest --basetemp={envtmpdir} tests

deps =
    pytest>=3.0
    supportdata>=0.1.2
    # py37 doesn't like numpy older then 1.13
    numpy11-!py37: numpy>=1.11,<1.12
    numpy11-py37: numpy>=1.14,<1.15
    numpy15: numpy>=1.15,<1.16
    numpy16: numpy>=1.16

sitepackages = False

[testenv:flake]
deps =
    flake8
commands =
    flake8 seabird

[tox]
envlist = py27-numpy11-{with,without}cotede, py37-numpy{15,16}-{with,without}cotede

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/seabird
    USE_NCCONFIG = 0

commands =
    pip install -U pip
    python -c 'import seabird.utils; seabird.utils.sampledata()'
    pytest --basetemp={envtmpdir} tests

deps =
    pytest>=3.0
    supportdata>=0.1.2
    numpy11: numpy>=1.11,<1.12
    numpy15: numpy>=1.15,<1.16
    numpy16: numpy>=1.16
    withcotede: cotede

sitepackages = False

[testenv:flake]
deps =
    flake8
commands =
    flake8 seabird

Split Python 2.7 & 3.7 in TOX tests
Split Python 2.7 & 3.7 in TOX tests

Python 2.7 is not happy with new packages. Decouple and prepare to
eventually drop support on Python 2.7
