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