Add support for IPv6 CIDR in no_proxy setting

This commit is contained in:
Lumir Balhar 2024-05-14 18:42:57 +02:00
commit 576af2d63f
2 changed files with 283 additions and 1 deletions

View file

@ -6,7 +6,7 @@
Name: python-requests
Version: 2.31.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: HTTP library, written in Python, for human beings
License: Apache-2.0
@ -17,6 +17,13 @@ Source: https://github.com/requests/requests/archive/v%{version}/request
# https://bugzilla.redhat.com/show_bug.cgi?id=904614
Patch: system-certs.patch
# Add support for IPv6 CIDR in no_proxy setting
# This functionality is needed in Openshift and it has been
# proposed for upstream in 2021 but the PR unfortunately stalled.
# Upstream PR: https://github.com/psf/requests/pull/5953
# This change is backported also into RHEL 9.4 (via CS)
Patch: support_IPv6_CIDR_in_no_proxy.patch
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
%if %{with tests}
@ -91,6 +98,9 @@ sed -i "/pytest.warns/s/None//" tests/test_requests.py
%changelog
* Tue May 14 2024 Lumír Balhar <lbalhar@redhat.com> - 2.31.0-5
- Add support for IPv6 CIDR in no_proxy setting
* Thu Apr 11 2024 Lumír Balhar <lbalhar@redhat.com> - 2.31.0-4
- Fix compatibility with pytest 8