Pull in tox implicitly through detox 20/13320/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 5 Nov 2018 07:23:44 +0000 (15:23 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 5 Nov 2018 07:36:52 +0000 (15:36 +0800)
detox's own requirements.txt limits the version of tox that it pulls
in. This can often conflict with the explicit version we set.
Let's use the version of tox as required by detox.

Issue: https://jira.opendaylight.org/browse/RELENG-136
Change-Id: I0b98afc6c993279c17cdd02d67471fadde23e552
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
releasenotes/notes/tox-conflict-926cc82f95fbc930.yaml [new file with mode: 0644]
shell/tox-install.sh

diff --git a/releasenotes/notes/tox-conflict-926cc82f95fbc930.yaml b/releasenotes/notes/tox-conflict-926cc82f95fbc930.yaml
new file mode 100644 (file)
index 0000000..c6646f2
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    New detox version requires tox >= 3.5 and < 4. Instead of
+    explicitly pulling tox, we are now implicitly pulling via
+    detox. (https://jira.opendaylight.org/browse/RELENG-136)
index 3aceceb..ad98336 100644 (file)
@@ -14,7 +14,8 @@ echo "---> tox-install.sh"
 # DO NOT set -u as virtualenv's activate script has unbound variables
 set -e -o pipefail
 
-python -m pip install --user --quiet --upgrade argparse detox "tox<3.0.0" tox-pyenv
+# Tox version is pulled in through detox to mitigate version conflict
+python -m pip install --user --quiet --upgrade argparse detox tox-pyenv
 
 echo "----> pip freeze"
 pip freeze