Files
deb-python-taskflow/tox-tmpl.ini
Joshua Harlow 3d437df749 Add envs for different sqlalchemy versions
Adjust tests to skip the sqlalchemy test if
sqlalchemy is not installed. Adjust examples
to fallback to a directory based backend if
the sqlalchemy does not load or is not available.

Include a updated tox.ini (generated from the
toxgen.py script) that includes the new venv
variations.

Change-Id: I7686f09901a9b65d7c81b4e037b5bffc24aa7ef7
2014-01-09 11:09:08 -08:00

85 lines
1.7 KiB
INI

# NOTE(harlowja): this is a template, not a fully-generated tox.ini, use toxgen
# to translate this into a fully specified tox.ini file before using. Changes
# made to tox.ini will only be reflected if ran through the toxgen generator.
[tox]
minversion = 1.6
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
commands =
flake8 {posargs}
[testenv:pylint]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
pylint==0.26.0
commands = pylint
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[flake8]
ignore = H402
builtins = _
exclude = .venv,.tox,dist,doc,./taskflow/openstack/common,*egg,.git,build,tools
[axes]
python = py26,py27,py33
sqlalchemy = sa7,sa8,sa9,*
eventlet = ev,*
[axis:python:py26]
basepython = python2.6
deps = {[testenv]deps}
[axis:python:py27]
basepython = python2.7
deps = {[testenv]deps}
[axis:python:py33]
basepython = python3.3
deps = {[testenv]deps}
[axis:eventlet:ev]
deps =
eventlet>=0.13.0
constraints=
!python:py33
[axis:sqlalchemy:sa7]
deps =
SQLAlchemy<=0.7.99
alembic>=0.4.1
[axis:sqlalchemy:sa8]
deps =
SQLAlchemy>0.7.99
SQLAlchemy<=0.8.99
alembic>=0.4.1
[axis:sqlalchemy:sa9]
deps =
SQLAlchemy>0.8.99
SQLAlchemy<=0.9.99
alembic>=0.4.1