43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
|
diff -Nuar requests-2.32.3.orig/setup.cfg requests-2.32.3/setup.cfg
|
||
|
--- requests-2.32.3.orig/setup.cfg 2024-05-29 23:36:10.000000000 +0800
|
||
|
+++ requests-2.32.3/setup.cfg 2024-11-04 14:18:55.628151448 +0800
|
||
|
@@ -4,7 +4,6 @@
|
||
|
socks
|
||
|
use_chardet_on_py3
|
||
|
requires-dist =
|
||
|
- certifi>=2017.4.17
|
||
|
charset_normalizer>=2,<4
|
||
|
idna>=2.5,<4
|
||
|
urllib3>=1.21.1,<3
|
||
|
diff -Nuar requests-2.32.3.orig/setup.py requests-2.32.3/setup.py
|
||
|
--- requests-2.32.3.orig/setup.py 2024-05-29 23:36:10.000000000 +0800
|
||
|
+++ requests-2.32.3/setup.py 2024-11-04 14:19:19.835151355 +0800
|
||
|
@@ -62,7 +62,6 @@
|
||
|
"charset_normalizer>=2,<4",
|
||
|
"idna>=2.5,<4",
|
||
|
"urllib3>=1.21.1,<3",
|
||
|
- "certifi>=2017.4.17",
|
||
|
]
|
||
|
test_requirements = [
|
||
|
"pytest-httpbin==2.0.0",
|
||
|
diff -Nuar requests-2.32.3.orig/src/requests/certs.py requests-2.32.3/src/requests/certs.py
|
||
|
--- requests-2.32.3.orig/src/requests/certs.py 2024-05-29 23:36:10.000000000 +0800
|
||
|
+++ requests-2.32.3/src/requests/certs.py 2024-11-04 14:18:20.840151580 +0800
|
||
|
@@ -11,7 +11,15 @@
|
||
|
environment, you can change the definition of where() to return a separately
|
||
|
packaged CA bundle.
|
||
|
"""
|
||
|
-from certifi import where
|
||
|
+
|
||
|
+import os
|
||
|
+
|
||
|
+if "_PIP_STANDALONE_CERT" not in os.environ:
|
||
|
+ def where():
|
||
|
+ return "/etc/pki/tls/certs/ca-bundle.crt"
|
||
|
+else:
|
||
|
+ def where():
|
||
|
+ return os.environ["_PIP_STANDALONE_CERT"]
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
print(where())
|