Pin ansible, ansible-lint, detox and pytest 47/16347/1
authorAnil Belur <abelur@linuxfoundation.org>
Sat, 27 Jul 2019 23:05:09 +0000 (09:05 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sat, 27 Jul 2019 23:09:26 +0000 (09:09 +1000)
PyTest 5 was released on June 28th that now requires Python >= 3.5
so pin to the 4.6.x stream until we are ready to drop 2.7 support.

Pin ansible and ansible-lint to get the molecule tests to work.

detox 0.19 is not compatible with the version of tox we are getting from
upstream.

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I1256a40c294686332b9d4cc614785d89af531f4a

tox.ini

diff --git a/tox.ini b/tox.ini
index b1f51c5..39ab72d 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -8,9 +8,12 @@ skipsdist=true
 [testenv:molecule]
 basepython = python2
 deps =
-    ansible
+    ansible~=2.7.11
+    ansible-lint~=4.0.1
+    detox~=0.18
     docker
     molecule
+    pytest~=4.6.4
 passenv = *
 commands =
     ./molecule.sh
@@ -19,4 +22,4 @@ commands =
 deps = pre-commit
 commands =
     pre-commit install --hook-type commit-msg
-    pre-commit run --all-files
\ No newline at end of file
+    pre-commit run --all-files