65d9a3299f
Latest tox causes failures: File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 1140, in processcommand argv = list(shlexer) File "/usr/lib/python2.7/shlex.py", line 269, in next token = self.get_token() File "/usr/lib/python2.7/shlex.py", line 96, in get_token raw = self.read_token() File "/usr/lib/python2.7/shlex.py", line 172, in read_token raise ValueError, "No closing quotation" ValueError: No closing quotation This is caused by a backwards incompatible change in tox: https://bitbucket.org/hpk42/tox/issues/181 We need to work with both older and newer tox versions, so let's remove the comment at the end of the line Change-Id: Id5ec8aeb700fcf9a63888e41e408d26b6e3e8481
63 lines
1.6 KiB
INI
63 lines
1.6 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = validate,pep8,bashate
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
--allow-external lazr.authentication
|
|
--allow-insecure lazr.authentication
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
# launchpadlib 0.0.1.dev533 requires lazr.restfulclient, which is
|
|
# py2-only (as of lazr.restfulclient 0.13.1)
|
|
basepython = python2.7
|
|
|
|
[testenv:validate]
|
|
commands = validate-request {posargs}
|
|
|
|
[testenv:list-changes]
|
|
setenv =
|
|
PYTHONUNBUFFERED=1
|
|
commands = list-changes {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[testenv:bashate]
|
|
deps = bashate
|
|
whitelist_externals = bash
|
|
commands = bash -c "find {toxinidir} \
|
|
-not \( -type d -name .?\* -prune \) \
|
|
-type f \
|
|
-not -name \*~ \
|
|
-not -name \*.md \
|
|
-name \*.sh \
|
|
-print0 | xargs -0 bashate -v"
|
|
|
|
[testenv:venv]
|
|
deps = .[sphinxext]
|
|
commands = {posargs}
|
|
|
|
[testenv:history]
|
|
commands = {toxinidir}/tools/build_tag_history.sh {toxinidir}
|
|
|
|
[testenv:cover]
|
|
#commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
deps = .[sphinxext]
|
|
|
|
[flake8]
|
|
# H803 skipped on purpose per list discussion.
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# E501 skipped because some of the code files include templates
|
|
# that end up quite wide
|
|
show-source = True
|
|
ignore = E123,E125,H803,E501
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,release-tag-*
|