07ed43
From cc1b9954ca7dcd90a694f7e2e9990c883bf7b647 Mon Sep 17 00:00:00 2001
07ed43
From: Lumir Balhar <lbalhar@redhat.com>
07ed43
Date: Wed, 21 Jul 2021 12:05:53 +0200
07ed43
Subject: [PATCH] patch-requests-certs.py-to-use-the-system-CA-bundle
f5eda6
f5eda6
---
07ed43
 requests/certs.py | 7 ++++++-
07ed43
 setup.py          | 1 -
07ed43
 2 files changed, 6 insertions(+), 2 deletions(-)
f5eda6
f5eda6
diff --git a/requests/certs.py b/requests/certs.py
07ed43
index a14a7ee..b4957d1 100644
f5eda6
--- a/requests/certs.py
f5eda6
+++ b/requests/certs.py
07ed43
@@ -10,8 +10,13 @@ only one — the one from the certifi package.
f5eda6
 If you are packaging Requests, e.g., for a Linux distribution or a managed
f5eda6
 environment, you can change the definition of where() to return a separately
f5eda6
 packaged CA bundle.
f5eda6
+
f5eda6
+This Fedora-patched package returns "/etc/pki/tls/certs/ca-bundle.crt" provided
f5eda6
+by the ca-certificates RPM package.
f5eda6
 """
f5eda6
-from certifi import where
07ed43
+def where():
07ed43
+    """Return the absolute path to the system CA bundle."""
07ed43
+    return '/etc/pki/tls/certs/ca-bundle.crt'
f5eda6
 
f5eda6
 if __name__ == '__main__':
f5eda6
     print(where())
f5eda6
diff --git a/setup.py b/setup.py
07ed43
index ce5e5c8..de86a91 100755
f5eda6
--- a/setup.py
f5eda6
+++ b/setup.py
07ed43
@@ -46,7 +46,6 @@ requires = [
07ed43
     'idna>=2.5,<3; python_version < "3"',
07ed43
     'idna>=2.5,<4; python_version >= "3"',
07ed43
     'urllib3>=1.21.1,<1.27',
f5eda6
-    'certifi>=2017.4.17'
f5eda6
 
f5eda6
 ]
f5eda6
 test_requirements = [
f5eda6
-- 
07ed43
2.31.1
f5eda6