Commit b44eae9e by Marius Gedminas

Don't compile .py files under .tox/

'tox -e py26' would fail for me because python -m compileall would crawl
under .tox/py27 and, unsurprisingly, get SyntaxErrors on files from the
Python 2.7 standard library using syntax features not supported by
Python 2.6.
parent 9f9891df
......@@ -9,7 +9,7 @@ whitelist_externals = make
[testenv:py26]
commands =
python --version
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' .
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py|.tox' .
make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals =
......@@ -18,7 +18,7 @@ whitelist_externals =
[testenv:py27]
commands =
python --version
python -m compileall -fq -x 'test|samples' .
python -m compileall -fq -x 'test|samples|.tox' .
make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = make
......@@ -26,7 +26,7 @@ whitelist_externals = make
[testenv:py34]
commands =
python --version
python -m compileall -fq -x 'lib/ansible/module_utils' lib
python -m compileall -fq -x 'lib/ansible/module_utils|.tox' lib
make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = make
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment