From 6157401a7bb35073e411e4ae9eb40bc80387d1b8 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Sat, 20 Feb 2021 11:00:50 +1000 Subject: [PATCH] Pin cryptography to 3.3.2 The latest version of module breaks compatibility with the latest version of pip. Error: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-vqk6fya9/cryptography/setup.py", line 14, i in from setuptools_rust import RustExtension ModuleNotFoundError: No module named 'setuptools_rust' Issue-Id: IT-21538 IT-21509 Change-Id: I83db995ae8321377b861cabcf6ac53485778e471 Signed-off-by: Anil Belur --- ...cryptography-module-3.3.2-40839530eb33b88d.yaml | 24 ++++++++++++++++++++++ shell/python-tools-install.sh | 1 + 2 files changed, 25 insertions(+) create mode 100644 releasenotes/notes/pip-cryptography-module-3.3.2-40839530eb33b88d.yaml diff --git a/releasenotes/notes/pip-cryptography-module-3.3.2-40839530eb33b88d.yaml b/releasenotes/notes/pip-cryptography-module-3.3.2-40839530eb33b88d.yaml new file mode 100644 index 00000000..885abb38 --- /dev/null +++ b/releasenotes/notes/pip-cryptography-module-3.3.2-40839530eb33b88d.yaml @@ -0,0 +1,24 @@ +--- +fixes: + - | + Pin cryptography to 3.3.2 + + The latest version of module breaks compatibility with the latest version + of pip. + + + Error: + + .. code-block:: bash + + Traceback (most recent call last): + File "", line 1, in + File "/tmp/pip-build-vqk6fya9/cryptography/setup.py", line 14, + in from setuptools_rust import RustExtension + ModuleNotFoundError: No module named 'setuptools_rust' + + + Reference: + + `PYCA#5753 ` + `PYCA#5771 ` diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index 062beb56..59783053 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -29,6 +29,7 @@ python-openstackclient python-magnumclient kubernetes niet~=1.4.2 +cryptography<3.4 yq # PINNED INDIRECT DEPENDENCIES -- 2.16.6