Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-requests.git#b653ecf80001536f085a47dd5068e3faa279fdd3
This commit is contained in:
DistroBaker 2021-02-05 20:20:05 +00:00
parent bcc9cc502f
commit 759e26d347
4 changed files with 17 additions and 30 deletions

1
.gitignore vendored
View File

@ -45,3 +45,4 @@
/requests-v2.23.0.tar.gz /requests-v2.23.0.tar.gz
/requests-v2.24.0.tar.gz /requests-v2.24.0.tar.gz
/requests-v2.25.0.tar.gz /requests-v2.25.0.tar.gz
/requests-v2.25.1.tar.gz

View File

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

View File

@ -9,8 +9,8 @@
Name: python-requests Name: python-requests
Version: 2.25.0 Version: 2.25.1
Release: 2%{?dist} Release: 1%{?dist}
Summary: HTTP library, written in Python, for human beings Summary: HTTP library, written in Python, for human beings
License: ASL 2.0 License: ASL 2.0
@ -96,7 +96,7 @@ sed -i 's/ --doctest-modules//' pytest.ini
%check %check
# test_https_warnings: https://github.com/psf/requests/issues/5530 # test_https_warnings: https://github.com/psf/requests/issues/5530
%pytest -v -k "not test_https_warnings" %pytest -v -k "not test_https_warnings"
%endif # tests %endif
%files -n python%{python3_pkgversion}-requests -f %{pyproject_files} %files -n python%{python3_pkgversion}-requests -f %{pyproject_files}
@ -105,6 +105,9 @@ sed -i 's/ --doctest-modules//' pytest.ini
%changelog %changelog
* Tue Feb 02 2021 Kevin Fenzi <kevin@scrye.com> - 2.25.1-1
- Update 2.25.1. Fix is rhbz#1908487
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.25.0-2 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.25.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (requests-v2.25.0.tar.gz) = f60d8dbbc7aaebaedc7647ab2cec1fffd01547ea3340b91d9c7fea51fde4cb932aaf81e3b8aac9f4be11243e4fc44c8266a69db5f52c4eb2afb1b7714c150b95 SHA512 (requests-v2.25.1.tar.gz) = e4fc90b229925a2b580e5cd85c39e8b0fe8006e1e49d247efc38616120ffdab319fc200424eeb4fb7175114daf1b6f98ba5c2f4baa00ce17fdc79e880df60ad8