We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1490757 commit 125be4bCopy full SHA for 125be4b
setup.py
@@ -30,6 +30,19 @@
30
if platform.system() == "Darwin" and "arm" in platform.machine().lower():
31
__install_requires__.append("chardet>=3.0.2,<4")
32
33
+# issue 4614: urllib3 v2.0 only supports OpenSSL 1.1.1+
34
+try:
35
+ import ssl
36
+
37
+ if ssl.OPENSSL_VERSION.startswith("OpenSSL ") and ssl.OPENSSL_VERSION_INFO < (
38
+ 1,
39
40
41
+ ):
42
+ __install_requires__.append("urllib3<2")
43
+except ImportError:
44
+ pass
45
46
47
setup(
48
name=__title__,
0 commit comments