public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-streamlink] f45: Backport fix for urllib 2.8.0 compatibility
@ 2026-09-19 7:23 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-19 7:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-streamlink
Branch : f45
Commit : e2bc3bbbcead07cd9335046c52a326d8d72f8772
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-18T21:25:40+01:00
Stats : +32/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-streamlink/c/e2bc3bbbcead07cd9335046c52a326d8d72f8772?branch=f45
Log:
Backport fix for urllib 2.8.0 compatibility
---
diff --git a/python-streamlink-8.4.0-urllib3-2.8.0.patch b/python-streamlink-8.4.0-urllib3-2.8.0.patch
new file mode 100644
index 0000000..4774369
--- /dev/null
+++ b/python-streamlink-8.4.0-urllib3-2.8.0.patch
@@ -0,0 +1,25 @@
+--- src/streamlink/session/http.py.orig 2026-05-06 19:13:45.000000000 +0100
++++ src/streamlink/session/http.py 2026-09-18 21:24:24.151241959 +0100
+@@ -55,14 +55,17 @@ class Urllib3UtilUrlPercentReOverride:
+ # noinspection PyProtectedMember
+ _re_percent_encoding: re.Pattern = urllib3.util.url._PERCENT_RE # type: ignore[attr-defined, ty:unresolved-attribute]
+
++ def __getattr__(self, item):
++ return getattr(self._re_percent_encoding, item)
++
++ # via `_encode_invalid_chars()`:
++ # https://github.com/urllib3/urllib3/blob/2.8.0/src/urllib3/util/url.py#L303-L305
+ # noinspection PyUnusedLocal
+- # https://github.com/urllib3/urllib3/blob/2.0.0/src/urllib3/util/url.py#L241-L243
+- @classmethod
+- def subn(cls, repl: Any, string: str, count: Any = None) -> tuple[str, int]:
+- return string, len(cls._re_percent_encoding.findall(string))
++ def subn(self, repl: Any, string: str, count: Any = None) -> tuple[str, int]:
++ return string, len(self._re_percent_encoding.findall(string))
+
+
+-urllib3.util.url._PERCENT_RE = Urllib3UtilUrlPercentReOverride # type: ignore[attr-defined, ty:unresolved-attribute]
++urllib3.util.url._PERCENT_RE = Urllib3UtilUrlPercentReOverride() # type: ignore[attr-defined, ty:unresolved-attribute]
+
+
+ # Monkey-patch urllib3's set_socket_options,
diff --git a/python-streamlink.spec b/python-streamlink.spec
index 3094074..5659fa6 100644
--- a/python-streamlink.spec
+++ b/python-streamlink.spec
@@ -8,7 +8,7 @@ Livestreamer, which is no longer maintained.}
Name: python-%{srcname}
Version: 8.4.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Python library for extracting streams from various websites
# src/streamlink/packages/requests_file.py is Apache-2.0
@@ -24,6 +24,9 @@ Patch2: %{name}-8.4.0-python3.15_tests.patch
# Fix HTTPSession.request() params handling with requests >= 2.34 (partially
# backported from https://github.com/streamlink/streamlink/commit/1ec2b2f)
Patch3: %{name}-8.4.0-requests_2.34.patch
+# session.http: fix urllib3 2.8.0 compatibility
+# https://github.com/streamlink/streamlink/commit/8f276a3362a2b9fbe3b3d822673524bbd0e95a32
+Patch4: python-streamlink-8.4.0-urllib3-2.8.0.patch
BuildRequires: make
BuildRequires: python3-devel
# For easy patching of pyproject.toml
@@ -127,6 +130,9 @@ install -Dpm 0644 -t $RPM_BUILD_ROOT%{zsh_completions_dir} completions/zsh/_%{sr
%changelog
+* Fri Sep 18 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 8.4.0-5
+- Backport fix for urllib 2.8.0 compatibility
+
* Mon Jul 27 2026 Miro Hrončok <mhroncok@redhat.com> - 8.4.0-4
- Rebuilt with pyproject-rpm-macros 1.23.2+
- Reintroduce accidentally dropped python-streamlink+decompress
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-19 7:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19 7:23 [rpms/python-streamlink] f45: Backport fix for urllib 2.8.0 compatibility Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox