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