Blame SOURCES/patch-requests-certs.py-to-use-the-system-CA-bundle.patch

430a3b
From d5a4f2908fab5ca16eb59db8b18eda7a94a37b04 Mon Sep 17 00:00:00 2001
430a3b
From: Jeremy Cline <jcline@redhat.com>
430a3b
Date: Thu, 13 Dec 2018 10:55:29 -0500
430a3b
Subject: [PATCH] Patch requests/certs.py to use the system CA bundle
430a3b
430a3b
Signed-off-by: Jeremy Cline <jcline@redhat.com>
430a3b
---
430a3b
 requests/certs.py | 8 +++++++-
430a3b
 setup.py          | 1 -
430a3b
 2 files changed, 7 insertions(+), 2 deletions(-)
430a3b
430a3b
diff --git a/requests/certs.py b/requests/certs.py
430a3b
index d1a378d7..5eb2f1a9 100644
430a3b
--- a/requests/certs.py
430a3b
+++ b/requests/certs.py
430a3b
@@ -11,8 +11,14 @@ only one — the one from the certifi package.
430a3b
 If you are packaging Requests, e.g., for a Linux distribution or a managed
430a3b
 environment, you can change the definition of where() to return a separately
430a3b
 packaged CA bundle.
430a3b
+
430a3b
+This Fedora-patched package returns "/etc/pki/tls/certs/ca-bundle.crt" provided
430a3b
+by the ca-certificates RPM package.
430a3b
 """
430a3b
-from certifi import where
430a3b
+def where():
430a3b
+    """Return the absolute path to the system CA bundle."""
430a3b
+    return '/etc/pki/tls/certs/ca-bundle.crt'
430a3b
+
430a3b
 
430a3b
 if __name__ == '__main__':
430a3b
     print(where())
430a3b
diff --git a/setup.py b/setup.py
430a3b
index 10ce2c62..1f3b2bde 100755
430a3b
--- a/setup.py
430a3b
+++ b/setup.py
430a3b
@@ -45,7 +45,6 @@ requires = [
430a3b
     'chardet>=3.0.2,<3.1.0',
430a3b
     'idna>=2.5,<2.9',
430a3b
     'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',
430a3b
-    'certifi>=2017.4.17'
430a3b
 
430a3b
 ]
430a3b
 test_requirements = [
430a3b
-- 
430a3b
2.19.2
430a3b