From 1cc08233d6ac55e23a04847450c7d651e586b235 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Sun, 18 Jun 2023 09:09:07 +0000 Subject: [PATCH 1/3] 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 dee2d6d..6476a50 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', From 83c109bc9bfdc0d9cab84a8d471fd477eb015744 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Thu, 22 Jun 2023 12:22:24 +0000 Subject: [PATCH 2/3] Change cryptography version limit to >=2.3,<40 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6476a50..fdebe60 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,<=39.0.0', + 'cryptography>=2.3,<40', 'idna==2.10', 'PyYAML>=5.1', 'cachetools', From 6eb2bd1265ae7b8493f3d3d5eb53bd2c59651876 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Sun, 9 Jul 2023 10:02:13 +0000 Subject: [PATCH 3/3] Drop idna==2.10 version lock There is no need to use such an old `idna` version. The latest works with py35+ and all tests pass. Newer `idna` supports the latest Unicode standard and latest python versions. https://github.com/kjd/idna/blob/master/HISTORY.rst --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fdebe60..a6d8512 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ deps = [ 'requests>=2.0.1', 'PySocks>=1.6.8', 'cryptography>=2.3,<40', - 'idna==2.10', + 'idna', 'PyYAML>=5.1', 'cachetools', 'rfc3986>=1.5.0',