Compare commits

..

No commits in common. 'c9' and 'i8c-stream-3.9_bootstrap' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/requests-v2.25.1.tar.gz SOURCES/requests-v2.25.0.tar.gz

@ -1 +1 @@
804fdbaf3dbc57f49a66cef920e9d4a5ce3460eb SOURCES/requests-v2.25.1.tar.gz 619d5a34667fdc0f1f8d1e1be6b9b7f6127383d1 SOURCES/requests-v2.25.0.tar.gz

@ -1,13 +0,0 @@
diff --git a/setup.py b/setup.py
index 065eb22..043ae42 100755
--- a/setup.py
+++ b/setup.py
@@ -100,7 +100,7 @@ setup(
cmdclass={'test': PyTest},
tests_require=test_requirements,
extras_require={
- 'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4'],
+ 'security': [],
'socks': ['PySocks>=1.5.6, !=1.5.7'],
'socks:sys_platform == "win32" and python_version == "2.7"': ['win_inet_pton'],
},

@ -1,7 +1,19 @@
diff --color -Nur requests-2.25.1.orig/requests/certs.py requests-2.25.1/requests/certs.py From aad5590d5ea47dc54cfd97da54f2640014f7d39d Mon Sep 17 00:00:00 2001
--- requests-2.25.1.orig/requests/certs.py 2021-01-10 16:27:05.027059634 -0800 From: Jeremy Cline <jcline@redhat.com>
+++ requests-2.25.1/requests/certs.py 2021-01-10 16:29:06.973238179 -0800 Date: Thu, 13 Dec 2018 10:55:29 -0500
@@ -10,8 +10,13 @@ Subject: [PATCH] Patch requests/certs.py to use the system CA bundle
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.
@ -13,17 +25,22 @@ diff --color -Nur requests-2.25.1.orig/requests/certs.py requests-2.25.1/request
+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 --color -Nur requests-2.25.1.orig/setup.py requests-2.25.1/setup.py diff --git a/setup.py b/setup.py
--- requests-2.25.1.orig/setup.py 2020-12-16 11:34:26.000000000 -0800 index 2da9ba07..851d9a42 100755
+++ requests-2.25.1/setup.py 2021-01-10 16:29:21.570259552 -0800 --- a/setup.py
@@ -45,7 +45,6 @@ +++ b/setup.py
'chardet>=3.0.2,<5', @@ -45,7 +45,6 @@ requires = [
'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

@ -1,11 +1,9 @@
# Disable tests on RHEL9 as to not pull in the test dependencies # RHEL8: Tests disabled due to missing dependencies
# Specify --with tests to run the tests e.g. on EPEL
%bcond_with tests %bcond_with tests
Name: python-requests Name: python-requests
Version: 2.25.1 Version: 2.25.0
Release: 7%{?dist} Release: 3%{?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
@ -25,27 +23,17 @@ Patch2: Remove-tests-that-use-the-tarpit.patch
# a pretty odd one so this is a niche requirement. # a pretty odd one so this is a niche requirement.
Patch3: requests-2.12.4-tests_nonet.patch Patch3: requests-2.12.4-tests_nonet.patch
# The [security] extra as present in upstream 2.25.1 is not possible,
# because the PyOpenSSL package is not part of RHEL 9.
# We backport a pre-2.26.0 commit that makes request[security] a no-op:
# https://github.com/psf/requests/pull/5867
# """
# We initially removed default support for PyOpenSSL in Requests 2.24.0
# as it is now considered less secure. Deprecation of the extras_require was
# announced in Requests 2.25.0 and we're officially removing the extras_require
# functionality in Requests 2.26.0.
# Projects currently using requests[security] after this change will continue
# to operate as if performing a standard requests installation (secure by default).
# """
Patch4: Empty-security-extras.patch
# Security fix for CVE-2023-32681 # Security fix for CVE-2023-32681
# Unintended leak of Proxy-Authorization header # Unintended leak of Proxy-Authorization header
# Resolved upstream: https://github.com/psf/requests/commit/74ea7cf7a6a27a4eeb2ae24e162bcc942a6706d5 # Resolved upstream: https://github.com/psf/requests/commit/74ea7cf7a6a27a4eeb2ae24e162bcc942a6706d5
# Tracking bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2209469 # Tracking bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2209469
Patch5: CVE-2023-32681.patch Patch4: CVE-2023-32681.patch
BuildArch: noarch BuildArch: noarch
# Exclude i686 arch. Due to a modularity issue it's being added to the
# x86_64 compose of CRB, but we don't want to ship it at all.
# See: https://projects.engineering.redhat.com/browse/RCM-72605
ExcludeArch: i686
%description %description
Most existing Python modules for sending HTTP requests are extremely verbose and Most existing Python modules for sending HTTP requests are extremely verbose and
@ -59,14 +47,23 @@ Summary: HTTP library, written in Python, for human beings
%{?python_provide:%python_provide python%{python3_pkgversion}-requests} %{?python_provide:%python_provide python%{python3_pkgversion}-requests}
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pyproject-rpm-macros BuildRequires: python%{python3_pkgversion}-rpm-macros
BuildRequires: python%{python3_pkgversion}-chardet
BuildRequires: python%{python3_pkgversion}-urllib3
BuildRequires: python%{python3_pkgversion}-idna
# RHEL8: pygments is used for syntax highlighting in the docs - disabled due to missing deps
# BuildRequires: python%{python3_pkgversion}-pygments
BuildRequires: python%{python3_pkgversion}-setuptools
%if %{with tests} %if %{with tests}
BuildRequires: python3dist(pytest) BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python3dist(pytest-httpbin) BuildRequires: python%{python3_pkgversion}-pytest-httpbin
BuildRequires: python3dist(pytest-mock) BuildRequires: python%{python3_pkgversion}-pytest-mock
%endif %endif
Requires: python%{python3_pkgversion}-chardet
Requires: python%{python3_pkgversion}-urllib3
Requires: python%{python3_pkgversion}-idna
%description -n python%{python3_pkgversion}-requests %description -n python%{python3_pkgversion}-requests
Most existing Python modules for sending HTTP requests are extremely verbose and Most existing Python modules for sending HTTP requests are extremely verbose and
@ -74,16 +71,6 @@ cumbersome. Pythons built-in urllib2 module provides most of the HTTP
capabilities you should need, but the API is thoroughly broken. This library is capabilities you should need, but the API is thoroughly broken. This library is
designed to make HTTP requests easy for developers. designed to make HTTP requests easy for developers.
%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks
%generate_buildrequires
%if %{with tests}
%pyproject_buildrequires -r
%else
%pyproject_buildrequires
%endif
%prep %prep
%autosetup -p1 -n requests-%{version} %autosetup -p1 -n requests-%{version}
@ -98,55 +85,40 @@ sed -i '/#!\/usr\/.*python/d' requests/certs.py
# change the docs. Thus, we set pytest not to run doctests at all. # change the docs. Thus, we set pytest not to run doctests at all.
sed -i 's/ --doctest-modules//' pytest.ini sed -i 's/ --doctest-modules//' pytest.ini
%build %build
%pyproject_wheel %py3_build
%install %install
%pyproject_install %py3_install
%pyproject_save_files requests
%if %{with tests} %if %{with tests}
%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 %endif # tests
%files -n python%{python3_pkgversion}-requests -f %{pyproject_files} %files -n python%{python3_pkgversion}-requests
%license LICENSE %license LICENSE
%doc README.md HISTORY.md %doc README.md HISTORY.md
%{python3_sitelib}/*.egg-info/
%{python3_sitelib}/requests/
%changelog %changelog
* Fri Jun 16 2023 Charalampos Stratakis <cstratak@redhat.com> - 2.25.1-7 * Fri May 24 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.25.0-3
- Rebuilt for MSVSphere 8.10
* Wed Jun 21 2023 Lumír Balhar <lbalhar@redhat.com> - 2.25.0-3
- Security fix for CVE-2023-32681 - Security fix for CVE-2023-32681
Resolves: rhbz#2209469 Resolves: rhbz#2209469
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.25.1-6 * Mon Jan 18 2021 Tomas Orsava <torsava@redhat.com> - 2.25.0-2
- Add automatically generated Obsoletes tag with the python39- prefix - Convert from Fedora to the python39 module in RHEL8
for smoother upgrade from RHEL8 - Resolves: rhbz#1877430
- Related: rhbz#1990421
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.25.1-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Jul 15 2021 Miro Hrončok <mhroncok@redhat.com> - 2.25.1-4
- Make requests[security] extras a no-op (backported from future 2.26.0)
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.25.1-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Mar 08 2021 Charalampos Stratakis <cstratak@redhat.com> - 2.25.1-2
- Disable tests on RHEL9 to avoid pulling in the test dependencies
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Nov 25 2020 Petr Viktorin <pviktori@redhat.com> - 2.25.0-1 * Wed Nov 25 2020 Petr Viktorin <pviktori@redhat.com> - 2.25.0-1
- Update to 2.25.0 - Update to 2.25.0
@ -154,9 +126,6 @@ Resolves: rhbz#2209469
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 2.24.0-5 * Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 2.24.0-5
- Don't BR pytest-cov - Don't BR pytest-cov
* Fri Sep 18 2020 Petr Viktorin <pviktori@redhat.com> - 2.24.0-4
- Port to pyproject macros
* Fri Sep 18 2020 Miro Hrončok <mhroncok@redhat.com> - 2.24.0-3 * Fri Sep 18 2020 Miro Hrončok <mhroncok@redhat.com> - 2.24.0-3
- Build with pytest 6, older version is no longer required - Build with pytest 6, older version is no longer required

Loading…
Cancel
Save