public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-streamlink] f44: Backport fix for urllib 2.8.0 compatibility
@ 2026-09-19 7:25 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-19 7:25 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-streamlink
Branch : f44
Commit : 05e191d59882ab8f9953259c56dd14329b022bc6
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-19T08:24:44+01:00
Stats : +32/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-streamlink/c/05e191d59882ab8f9953259c56dd14329b022bc6?branch=f44
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 3ea0631..cdd371b 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: 1%{?dist}
+Release: 2%{?dist}
Summary: Python library for extracting streams from various websites
# src/streamlink/packages/requests_file.py is Apache-2.0
@@ -21,6 +21,9 @@ Patch0: %{name}-8.1.0-documentation.patch
Patch1: %{name}-8.1.0-pytest_8.3.patch
# Fix tests with Python 3.15 argparse colorization API
Patch2: %{name}-8.4.0-python3.15_tests.patch
+# session.http: fix urllib3 2.8.0 compatibility
+# https://github.com/streamlink/streamlink/commit/8f276a3362a2b9fbe3b3d822673524bbd0e95a32
+Patch3: python-streamlink-8.4.0-urllib3-2.8.0.patch
BuildRequires: make
BuildRequires: python3-devel
# For easy patching of pyproject.toml
@@ -124,6 +127,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-2
+- Backport fix for urllib 2.8.0 compatibility
+
* Thu Jun 25 2026 Mohamed El Morabity <melmorabity@fedoraproject.org> - 8.4.0-1
- Update to 8.4.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-19 7:25 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:25 [rpms/python-streamlink] f44: 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