
Misc changes which include below improvements: 1. Using oslo.db to get a clean db API layer 2. Using alembic to support db migration 3. Fix all the PEP 8 issues for new code 4. A new API /health which is also used to verify the new DB API NOTE: Given we're using MySQL, so the triggers fro PostgreSQL will be dropped until there is a requirement for that. And the trigger creation code will be in a separate patch. Change-Id: I4edd64cb511d16f1e5243968693ad7e73db43f06
50 lines
1.3 KiB
INI
50 lines
1.3 KiB
INI
[tox]
|
|
envlist = py26,py27,py33,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
DISCOVER_DIRECTORY=distil/tests/unit
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args="{posargs}"
|
|
whitelist_externals = bash
|
|
|
|
[testenv:py33]
|
|
deps = -r{toxinidir}/requirements-py3.txt
|
|
-r{toxinidir}/test-requirements-py3.txt
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
rm -rf doc/html doc/build
|
|
rm -rf doc/source/apidoc doc/source/api
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:pylint]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands = bash tools/lintstack.sh
|
|
|
|
[flake8]
|
|
ignore = F401,H302,H305,H306,H307,H404,H405
|
|
show-source = true
|
|
builtins = _
|
|
exclude= .venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,*distil/transformer*,*distil/interface*,*distil/NoPickle*,*distil/database*,*distil/helpers*,*distil/rates*,*distil/api/helpers*,*distil/api/web*,*bin*,*odoo/odoo*,*build/lib*,*bin/web*,*distil/tests*,*distil/web*,*client/shell.py,*client/client.py,*distil/models*
|