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] f45: Backport fix for urllib 2.8.0 compatibility
Date: Sat, 19 Sep 2026 07:23:08 GMT [thread overview]
Message-ID: <178980258886.1.14816861299081306034.rpms-python-streamlink-e2bc3bbbcead@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-19 7:23 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=178980258886.1.14816861299081306034.rpms-python-streamlink-e2bc3bbbcead@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