summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2015-08-26 08:31:43 +0300
committerMarius Gedminas <marius@gedmin.as>2015-08-26 08:31:43 +0300
commitb44eae9ebc5c3b63a6c09063846a7c197e974789 (patch)
treeffcec7a9b88f80ba7477a1f3015ad76a41a0ed04 /tox.ini
parent9f9891df2ca87d6adf9b6267846432abd7d3b3f3 (diff)
downloadansible-b44eae9ebc5c3b63a6c09063846a7c197e974789.tar.gz
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.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 3 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index ad3d37b521..05f5a3c2d1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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