8f5b357b73
Infra now supports constraints everywhere, remove now unused workarounds. For more information about constraints see: http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html Change-Id: I97e88cef6d58dfc11110d2851330a06c8d8a4283
42 lines
1.1 KiB
INI
42 lines
1.1 KiB
INI
[tox]
|
|
envlist = {py27,pypy}-{mysql,postgres},pep8
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command =
|
|
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} --pre
|
|
whitelist_externals = find
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
PyMySQL>=0.6.1
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
nosetests
|
|
|
|
[testenv:py27-postgres]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
postgres: psycopg2
|
|
|
|
[testenv:pypy-postgres]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
postgres: psycopg2
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
# TODO: ignored checks should be enabled in the future
|
|
# H201 no 'except:' at least use 'except Exception:'
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
ignore = F821,H201,H405
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*egg,build
|