From aa8948e61256bff53be47fd32d1aeec9810f132b Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Sun, 18 Jun 2023 09:09:07 +0000 Subject: [PATCH] Limit dependency version cryptography>=2.3,<=39.0.0 cryptography 41.0.0 crashes warcprox with the following exception: ``` File "/opt/spn2/lib/python3.8/site-packages/warcprox/main.py", line 317, in main cryptography.hazmat.backends.openssl.backend.activate_builtin_random() AttributeError: 'Backend' object has no attribute 'activate_builtin_random' ``` Also, cryptography==40.0.0 isn't OK because when I try to use it I get: ``` pyopenssl 23.2.0 requires cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0, but you have cryptography 40.0.0 which is incompatible. ``` So, the version should be <=39.0.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4f9ad36..0ffc47c 100755 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ deps = [ 'urllib3>=1.23', 'requests>=2.0.1', 'PySocks>=1.6.8', - 'cryptography>=2.3', + 'cryptography>=2.3,<=39.0.0', 'idna==2.10', 'PyYAML>=5.1', 'cachetools',