Blame SOURCES/patch-requests-certs.py-to-use-the-system-CA-bundle.patch
|
|
8559fd |
diff --color -Nur requests-2.25.1.orig/requests/certs.py requests-2.25.1/requests/certs.py
|
|
|
8559fd |
--- requests-2.25.1.orig/requests/certs.py 2021-01-10 16:27:05.027059634 -0800
|
|
|
8559fd |
+++ requests-2.25.1/requests/certs.py 2021-01-10 16:29:06.973238179 -0800
|
|
|
8559fd |
@@ -10,8 +10,13 @@
|
|
|
8559fd |
If you are packaging Requests, e.g., for a Linux distribution or a managed
|
|
|
8559fd |
environment, you can change the definition of where() to return a separately
|
|
|
8559fd |
packaged CA bundle.
|
|
|
8559fd |
+
|
|
|
8559fd |
+This Fedora-patched package returns "/etc/pki/tls/certs/ca-bundle.crt" provided
|
|
|
8559fd |
+by the ca-certificates RPM package.
|
|
|
8559fd |
"""
|
|
|
8559fd |
-from certifi import where
|
|
|
8559fd |
+def where():
|
|
|
8559fd |
+ """Return the absolute path to the system CA bundle."""
|
|
|
8559fd |
+ return '/etc/pki/tls/certs/ca-bundle.crt'
|
|
|
8559fd |
|
|
|
8559fd |
if __name__ == '__main__':
|
|
|
8559fd |
print(where())
|
|
|
8559fd |
diff --color -Nur requests-2.25.1.orig/setup.py requests-2.25.1/setup.py
|
|
|
8559fd |
--- requests-2.25.1.orig/setup.py 2020-12-16 11:34:26.000000000 -0800
|
|
|
8559fd |
+++ requests-2.25.1/setup.py 2021-01-10 16:29:21.570259552 -0800
|
|
|
8559fd |
@@ -45,7 +45,6 @@
|
|
|
8559fd |
'chardet>=3.0.2,<5',
|
|
|
8559fd |
'idna>=2.5,<3',
|
|
|
8559fd |
'urllib3>=1.21.1,<1.27',
|
|
|
8559fd |
- 'certifi>=2017.4.17'
|
|
|
8559fd |
|
|
|
8559fd |
]
|
|
|
8559fd |
test_requirements = [
|