[tox]
envlist=py27,py33,py34,pypy,docs,self27,cov27

# Default settings for py27, py33, py34 and pypy
[testenv]
deps=-r{toxinidir}/requirements.txt
commands=python -m unittest discover []

[testenv:jython]
deps=-r{toxinidir}/requirements.txt
     -r{toxinidir}/requirements-py27.txt
commands=unit2 discover []

[testenv:docs]
basepython=python2.7
changedir=docs
deps=-r{toxinidir}/requirements.txt
     -r{toxinidir}/requirements-docs.txt
commands=sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:self27]
basepython=python2.7
deps=-r{toxinidir}/requirements.txt
setenv=PYTHONPATH={toxinidir}
commands=python -m nose2.__main__ []

[testenv:cov27]
basepython=python2.7
deps=coverage>=3.3
     -r{toxinidir}/requirements.txt
commands=coverage erase
         coverage run -m unittest discover []
         coverage report --include=*nose2* --omit=*nose2/tests*
         coverage html -d cover --include=*nose2* --omit=*nose2/tests*

[tox]
envlist=py27,py33,py34,pypy,docs,self27,cov27

# Default settings for py27, py33, py34 and pypy
[testenv]
deps=-r{toxinidir}/requirements.txt
commands=python -m unittest discover []

[testenv:jython]
deps=-r{toxinidir}/requirements.txt
     -r{toxinidir}/requirements-py27.txt
commands=unit2 discover []

[testenv:docs]
basepython=python2.7
changedir=docs
deps=-r{toxinidir}/requirements-2.7.txt
     -r{toxinidir}/requirements-docs.txt
commands=sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:py27]
deps=-r{toxinidir}/requirements-2.7.txt

[testenv:self27]
basepython=python2.7
deps=-r{toxinidir}/requirements-2.7.txt
setenv=PYTHONPATH={toxinidir}
commands=python -m nose2.__main__ []

[testenv:cov27]
basepython=python2.7
deps=coverage>=3.3
     -r{toxinidir}/requirements-2.7.txt
commands=coverage erase
         coverage run -m unittest discover []
         coverage report --include=*nose2* --omit=*nose2/tests*
         coverage html -d cover --include=*nose2* --omit=*nose2/tests*

Use the py2.7 deps on py2.7 targets
Use the py2.7 deps on py2.7 targets
