From 69d07b0bcf2fa88d3cb57b5d01742601442821dc Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 6 Jun 2023 19:52:14 -0400 Subject: [PATCH] Update to 1.26.16 --- .gitignore | 1 + 4855d71.patch | 28 ---------------------------- python-urllib3.spec | 13 ++++++------- sources | 2 +- 4 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 4855d71.patch diff --git a/.gitignore b/.gitignore index 8a133f4..282aa2f 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ /urllib3-1.26.9.tar.gz /urllib3-1.26.12.tar.gz /urllib3-1.26.15.tar.gz +/urllib3-1.26.16.tar.gz diff --git a/4855d71.patch b/4855d71.patch deleted file mode 100644 index 22945ff..0000000 --- a/4855d71.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 4855d71ad5535bdff47a0dc5cfe09fb610ff6576 Mon Sep 17 00:00:00 2001 -From: Thomas Grainger -Date: Sat, 15 Apr 2023 20:41:24 +0100 -Subject: [PATCH] Fix test_ssl_object_attributes - -Co-authored-by: Seth Michael Larson ---- - test/test_ssltransport.py | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/test/test_ssltransport.py b/test/test_ssltransport.py -index a3b7381639..cace51db96 100644 ---- a/test/test_ssltransport.py -+++ b/test/test_ssltransport.py -@@ -229,8 +229,11 @@ def test_ssl_object_attributes(self) -> None: - assert ssock.selected_npn_protocol() is None - - shared_ciphers = ssock.shared_ciphers() -- assert type(shared_ciphers) == list -- assert len(shared_ciphers) > 0 -+ # SSLContext.shared_ciphers() changed behavior completely in a patch version. -+ # See: https://github.com/python/cpython/issues/96931 -+ assert shared_ciphers is None or ( -+ type(shared_ciphers) is list and len(shared_ciphers) > 0 -+ ) - - assert ssock.compression() is None - diff --git a/python-urllib3.spec b/python-urllib3.spec index 7f4ef5d..8d9d29c 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -7,8 +7,8 @@ %endif Name: python-urllib3 -Version: 1.26.15 -Release: 3%{?dist} +Version: 1.26.16 +Release: 1%{?dist} Summary: HTTP library with thread-safe connection pooling, file post, and more # SPDX @@ -16,10 +16,6 @@ License: MIT URL: https://github.com/urllib3/urllib3 Source: %{url}/archive/%{version}/urllib3-%{version}.tar.gz -# Accomodate the test to the changed behavior of SSLContext.shared_ciphers() in CPython -# See: https://github.com/python/cpython/issues/96931 -Patch: https://github.com/urllib3/urllib3/commit/4855d71.patch - BuildArch: noarch BuildRequires: python3-devel @@ -96,7 +92,7 @@ Requires: python3-urllib3+socks = %{version}-%{release} %prep -%autosetup -p1 -n urllib3-%{version} +%autosetup -n urllib3-%{version} # Make sure that the RECENT_DATE value doesn't get too far behind what the current date is. # RECENT_DATE must not be older that 2 years from the build time, or else test_recent_date # (from test/test_connection.py) would fail. However, it shouldn't be to close to the build time either, @@ -170,6 +166,9 @@ ignore="${ignore-} --ignore=test/test_no_ssl.py" %changelog +* Sat Jul 01 2023 Benjamin A. Beasley - 1.26.16-1 +- Update to 1.26.16 + * Sat Jul 01 2023 Python Maint - 1.26.15-3 - Rebuilt for Python 3.12 diff --git a/sources b/sources index 0b52ef1..81f5417 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (urllib3-1.26.15.tar.gz) = edd52a05049a047b1bb913de1cc211a6f7b70802e9ddcb639a973fb910bf218210577a5375077b6569ef382c07668ad6057adb67a31475125c2e5517c603131d +SHA512 (urllib3-1.26.16.tar.gz) = 47cb993acabf169470448bc91b1a0d1fb4df6e60bf97ce6fb06f5397935f33f693cd0851a663fb36a7c5a4b19ed4dbcc0fcce9f45839315354a013f41d837f7a