[tox]
envlist = py27,py33,py34,py35

[base]
deps = -rrequirements.txt
    nose
    nose-testconfig
    flexmock
    lazr.smtptest
    coverage
    openstack.nose-plugin

[testenv]
install_command = pip install --no-use-wheel --pre {opts} {packages}
deps = {[base]deps}
changedir = {envdir}
commands = {envbindir}/nosetests --config={toxinidir}/setup.cfg --tc-file={toxinidir}/setup.cfg {envsitepackagesdir}/blueberrypy/tests/

# Reenable when this is merged
# https://github.com/geoalchemy/geoalchemy2/pull/79
[testenv:pypy]
deps = {[base]deps}
       psycopg2cffi

[testenv:py27]
install_command = pip install --no-use-wheel --pre {opts} {packages}
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

[testenv:py33]
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

[testenv:py34]
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

[testenv:py35]
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

[tox]
envlist = py27,py33,py34,py35

[base]
deps = -rrequirements.txt
    nose
    nose-testconfig
    flexmock
    lazr.smtptest
    coverage
    openstack.nose-plugin

[testenv]
install_command = pip install --no-use-wheel --pre {opts} {packages}
deps = {[base]deps}
changedir = {envdir}
commands = {envbindir}/nosetests --config={toxinidir}/setup.cfg --tc-file={toxinidir}/setup.cfg {envsitepackagesdir}/blueberrypy/tests/

# Reenable when this is merged
# https://github.com/geoalchemy/geoalchemy2/pull/79
[testenv:pypy]
deps = {[base]deps}
       psycopg2cffi

[testenv:py27]
install_command = pip install --no-use-wheel --pre {opts} {packages}
deps = {[base]deps}
       mock
       hiredis
       MarkupSafe
       psycopg2

[testenv:py33]
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

[testenv:py34]
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

[testenv:py35]
deps = {[base]deps}
       hiredis
       MarkupSafe
       psycopg2

Install mock package for testing under Python 2.7
Install mock package for testing under Python 2.7
