public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-streamlink] f43: Backport fix for urllib 2.8.0 compatibility
Date: Sat, 19 Sep 2026 07:26:14 GMT [thread overview]
Message-ID: <178980277445.1.735796486185612748.rpms-python-streamlink-b46f1ed90f57@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-streamlink
Branch : f43
Commit : b46f1ed90f57eededa54a601fa67fb49df4f5c84
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-19T08:25:44+01:00
Stats : +32/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-streamlink/c/b46f1ed90f57eededa54a601fa67fb49df4f5c84?branch=f43
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 1e2950e..ad685d7 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
reply other threads:[~2026-09-19 7:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178980277445.1.735796486185612748.rpms-python-streamlink-b46f1ed90f57@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox