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