Browse code

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.

Marius Gedminas authored on 2015/08/26 14:31:43
Showing 1 changed files
... ...
@@ -9,7 +9,7 @@ whitelist_externals = make
9 9
 [testenv:py26]
10 10
 commands =
11 11
     python --version
12
-    python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' .
12
+    python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py|.tox' .
13 13
     make tests
14 14
 deps = -r{toxinidir}/test-requirements.txt
15 15
 whitelist_externals =
... ...
@@ -18,7 +18,7 @@ whitelist_externals =
18 18
 [testenv:py27]
19 19
 commands =
20 20
     python --version
21
-    python -m compileall -fq -x 'test|samples' .
21
+    python -m compileall -fq -x 'test|samples|.tox' .
22 22
     make tests
23 23
 deps = -r{toxinidir}/test-requirements.txt
24 24
 whitelist_externals = make
... ...
@@ -26,7 +26,7 @@ whitelist_externals = make
26 26
 [testenv:py34]
27 27
 commands =
28 28
     python --version
29
-    python -m compileall -fq -x 'lib/ansible/module_utils' lib
29
+    python -m compileall -fq -x 'lib/ansible/module_utils|.tox' lib
30 30
     make tests
31 31
 deps = -r{toxinidir}/test-requirements.txt
32 32
 whitelist_externals = make