Pin importlib-resources version to <2.0.0 60/64260/2
authorThanh Ha <zxiiro@gmail.com>
Thu, 11 Jun 2020 20:47:16 +0000 (16:47 -0400)
committerThanh Ha <zxiiro@gmail.com>
Thu, 11 Jun 2020 20:54:46 +0000 (16:54 -0400)
The current virtualenv 20.0.21 is incompatible with importlib-resources
2.0.0. This patch pins the version of importlib-resources temporarily
until a virtualenv version that supports it is released. This resolves
the ignored error in tox-verify job builds:

    ERROR: virtualenv 20.0.21 has requirement
    importlib-resources<2,>=1.0; python_version < "3.7", but you'll
    have importlib-resources 2.0.0 which is incompatible.

Issue: RELENG-2993
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I04cf74f4209104475c1548653f157821814970df

releasenotes/notes/pin-importlib-resources-f3fd824b5a84bc8e.yaml [new file with mode: 0644]
shell/python-tools-install.sh

diff --git a/releasenotes/notes/pin-importlib-resources-f3fd824b5a84bc8e.yaml b/releasenotes/notes/pin-importlib-resources-f3fd824b5a84bc8e.yaml
new file mode 100644 (file)
index 0000000..82af123
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Pin importlib-resources to 2.0.0 to resolve package incompatibility
+    between it and the currnet virtualenv version (20.0.21). Until a
+    compatibile virtualenv is released this dependency needs to be pinned.
index eae3c1f..adcca1c 100644 (file)
@@ -31,6 +31,14 @@ kubernetes
 niet~=1.4.2
 tox>=3.7.0 # Tox 3.7 or greater is necessary for parallel mode support
 yq
+
+# PINNED INDIRECT DEPENDENCIES
+# ============================
+# The libraries listed below should be considered workarounds and thus need
+# to have a link to a JIRA and any relevant pkg versions and support packages
+# necessary so that future maintainers of this file can make decisions to
+# remove the workarounds in the future.
+importlib-resources<2.0.0  # virtualenv 20.0.21 requires importlib-resources<2.0.0 (RELENG-2993)
 EOF
 
     #Python 3.5 in Ubuntu 16.04 workaround