From a6a540aebbce24bf5348d291115302dacfd2028a Mon Sep 17 00:00:00 2001 From: Samuel Walladge Date: Fri, 30 Sep 2022 08:50:53 +0930 Subject: [PATCH] Pin pyOpenSSL in setup.py It was pinned in requirements.txt, but this isn't picked up when installing this via pip. So, it needs to be pinned in the setup.py install_require list too. --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 6ae126b..8e963c1 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,11 @@ install_require = [ 'async_generator', 'boto3', + # pyopenssl depends on a newer version of cryptography since 22.1.0 + # TypeError: deprecated() got an unexpected keyword argument 'name' + # https://github.com/pyca/pyopenssl/commit/a145fc3bc6d2e943434beb2f04bbf9b18930296f + 'pyopenssl<22.1.0', + # Newer versions require a Rust compiler to build, see # * https://github.com/openstack-charmers/zaza/issues/421 # * https://mail.python.org/pipermail/cryptography-dev/2021-January/001003.html