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