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