public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mohamed El Morabity <melmorabity@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-streamlink] rawhide: Update to 8.6.2
Date: Sat, 24 Oct 2026 05:43:16 GMT	[thread overview]
Message-ID: <179282059647.1.7382462368302495373.rpms-python-streamlink-26d5178aa6b6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-streamlink
Branch : rawhide
Commit : 26d5178aa6b625b944153d3d48a1ab166bd066eb
Author : Mohamed El Morabity <melmorabity@fedoraproject.org>
Date   : 2026-10-24T07:42:54+02:00
Stats  : +23/-123 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/python-streamlink/c/26d5178aa6b625b944153d3d48a1ab166bd066eb?branch=rawhide

Log:
Update to 8.6.2

---
diff --git a/.gitignore b/.gitignore
index d06f34a..b1c971c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,3 +58,4 @@
 /streamlink-8.1.0.tar.gz
 /streamlink-8.2.1.tar.gz
 /streamlink-8.4.0.tar.gz
+/streamlink-8.6.2.tar.gz

diff --git a/python-streamlink-8.1.0-documentation.patch b/python-streamlink-8.1.0-documentation.patch
deleted file mode 100644
index e3e3ec9..0000000
--- a/python-streamlink-8.1.0-documentation.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff -up ./docs/conf.py.orig ./docs/conf.py
---- ./docs/conf.py.orig	2025-12-14 19:07:02.000000000 +0100
-+++ ./docs/conf.py	2026-01-03 15:03:59.621995745 +0100
-@@ -155,3 +155,5 @@ man_pages = [
- ]
- 
- man_make_section_directory = False
-+
-+intersphinx_mapping.clear()
-diff -up ./script/build-shell-completions.sh.orig ./script/build-shell-completions.sh
---- ./script/build-shell-completions.sh.orig	2025-12-14 19:07:02.000000000 +0100
-+++ ./script/build-shell-completions.sh	2026-01-03 15:04:32.270782978 +0100
-@@ -13,14 +13,14 @@ declare -A COMPLETIONS=(
- )
- 
- for dep in "${PYTHON_DEPS[@]}"; do
--  python -c "import ${dep}" 2>&1 >/dev/null \
-+  python3 -c "import ${dep}" 2>&1 >/dev/null \
-     || { echo >&2 "${dep} could not be found in your python environment"; exit 1; }
- done
- 
- for shell in "${!COMPLETIONS[@]}"; do
-   mkdir -p "${DIST}/${shell}"
-   dist="${DIST}/${shell}/${COMPLETIONS[${shell}]}"
--  python -m shtab \
-+  python3 -m shtab \
-     "--shell=${shell}" \
-     --error-unimportable \
-     streamlink_cli._parser.get_parser \

diff --git a/python-streamlink-8.4.0-python3.15_tests.patch b/python-streamlink-8.4.0-python3.15_tests.patch
deleted file mode 100644
index bdc9a51..0000000
--- a/python-streamlink-8.4.0-python3.15_tests.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up ./tests/cli/main/test_logging.py.python315 ./tests/cli/main/test_logging.py
---- ./tests/cli/main/test_logging.py.python315	2026-06-25 23:00:10.856593364 +0200
-+++ ./tests/cli/main/test_logging.py	2026-06-25 23:00:10.958338825 +0200
-@@ -665,7 +665,7 @@ class TestPrint:
-     @pytest.fixture()
-     def _color(self, request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch):
-         can_colorize = getattr(request, "param", False)
--        monkeypatch.setattr("_colorize.can_colorize", lambda: can_colorize)
-+        monkeypatch.setattr("_colorize.can_colorize", lambda *args, **kwargs: can_colorize)
- 
-     @pytest.fixture()
-     def stdout(self, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture, session: Streamlink):

diff --git a/python-streamlink-8.4.0-requests_2.34.patch b/python-streamlink-8.4.0-requests_2.34.patch
deleted file mode 100644
index b1259cc..0000000
--- a/python-streamlink-8.4.0-requests_2.34.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- src/streamlink/session/http.py.orig	2026-07-26 14:17:22.850972682 +0200
-+++ src/streamlink/session/http.py	2026-07-26 14:17:22.855763923 +0200
-@@ -255,7 +255,7 @@ class HTTPSession(Session):
-         encoding = kwargs.pop("encoding", None)
-         exception = kwargs.pop("exception", PluginError)
-         headers = kwargs.pop("headers", {})
--        params = kwargs.pop("params", {})
-+        params = kwargs.pop("params", None)
-         proxies = kwargs.pop("proxies", self.proxies)
-         raise_for_status = kwargs.pop("raise_for_status", True)
-         schema = kwargs.pop("schema", None)
-@@ -268,7 +268,10 @@ class HTTPSession(Session):
- 
-         if session:
-             headers.update(session.headers)
--            params.update(session.params)
-+            if params is None:
-+                params = dict(session.params)
-+            else:
-+                params.update(session.params)
- 
-         while True:
-             try:
---- tests/session/test_http.py.orig	2026-07-26 14:17:22.852487827 +0200
-+++ tests/session/test_http.py	2026-07-26 14:17:22.857070613 +0200
-@@ -165,10 +165,10 @@ class TestHTTPSession:
-             session.get("http://localhost/", timeout=123, retries=3, retry_backoff=2, retry_max_backoff=5)
- 
-         assert mock_request.call_args_list == [
--            call("GET", "http://localhost/", headers={}, params={}, timeout=123, proxies={}, allow_redirects=True),
--            call("GET", "http://localhost/", headers={}, params={}, timeout=123, proxies={}, allow_redirects=True),
--            call("GET", "http://localhost/", headers={}, params={}, timeout=123, proxies={}, allow_redirects=True),
--            call("GET", "http://localhost/", headers={}, params={}, timeout=123, proxies={}, allow_redirects=True),
-+            call("GET", "http://localhost/", headers={}, params=None, timeout=123, proxies={}, allow_redirects=True),
-+            call("GET", "http://localhost/", headers={}, params=None, timeout=123, proxies={}, allow_redirects=True),
-+            call("GET", "http://localhost/", headers={}, params=None, timeout=123, proxies={}, allow_redirects=True),
-+            call("GET", "http://localhost/", headers={}, params=None, timeout=123, proxies={}, allow_redirects=True),
-         ]
-         assert mock_sleep.call_args_list == [
-             call(2),

diff --git a/python-streamlink-8.4.0-urllib3-2.8.0.patch b/python-streamlink-8.4.0-urllib3-2.8.0.patch
deleted file mode 100644
index 4774369..0000000
--- a/python-streamlink-8.4.0-urllib3-2.8.0.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- 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 5659fa6..1b6f7ff 100644
--- a/python-streamlink.spec
+++ b/python-streamlink.spec
@@ -7,26 +7,16 @@ who want access to the video stream data. This project was forked from
 Livestreamer, which is no longer maintained.}
 
 Name:           python-%{srcname}
-Version:        8.4.0
-Release:        5%{?dist}
+Version:        8.6.2
+Release:        1%{?dist}
 Summary:        Python library for extracting streams from various websites
 
 # src/streamlink/packages/requests_file.py is Apache-2.0
 License:        BSD-2-Clause AND Apache-2.0
 URL:            https://streamlink.github.io
 Source0:        %{pypi_source %{srcname}}
-# Fix documentation build
-Patch0:         %{name}-8.1.0-documentation.patch
 # Fix tests with pytest < 8.4.0 (F43)
-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
-# 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
+Patch0:         %{name}-8.1.0-pytest_8.3.patch
 BuildRequires:  make
 BuildRequires:  python3-devel
 # For easy patching of pyproject.toml
@@ -83,19 +73,31 @@ tomcli set pyproject.toml arrays replace "project.dependencies" "(pycryptodome)(
 # Drop useless dependencies (only needed for building the HTML documentation)
 tomcli set pyproject.toml arrays delitem "dependency-groups.docs" "furo\s*[><=]+.*"
 
+# Allow shtab < 1.9.0, as shtab >= 1.9.0 (required for fish completion) is not
+# available in Fedora yet, and drop the pre-built fish completion file
+tomcli set pyproject.toml arrays replace "dependency-groups.script" "(shtab)\s*[><=]+.*" "\1"
+rm -r completions/fish/
+
+# Allow Sphinx 9 (sphinx-doc/sphinx#14332 only affects the HTML documentation)
+%if 0%{?fedora} > 44
+tomcli set pyproject.toml arrays replace "dependency-groups.docs" "(sphinx\s*>=[^,]+),\s*<9" "\1"
+%endif
+
 
 %generate_buildrequires
-%pyproject_buildrequires -g test -g build -g docs
+%pyproject_buildrequires -g test,docs,script
 
 
 %build
 %pyproject_wheel
 
 # Generate man pages
-PYTHONPATH=$PWD/src %make_build -C docs/ man SPHINXOPTS=-j%{?_smp_build_ncpus}
+PYTHONPATH=$PWD/src %make_build -C docs/ man SPHINXOPTS=-j%{?_smp_build_ncpus} SPHINXTAGS="-t no_intersphinx"
 
 # Generate shell completion files
-PYTHONPATH=$PWD/src ./script/build-shell-completions.sh
+# TODO: drop the shell list (and the shtab/fish workarounds in %%prep) once
+# shtab >= 1.9.0 is available in Fedora
+PYTHONPATH=$PWD/src %{python3} script/build-shell-completions.py bash zsh
 
 
 %install
@@ -130,6 +132,9 @@ install -Dpm 0644 -t $RPM_BUILD_ROOT%{zsh_completions_dir} completions/zsh/_%{sr
 
 
 %changelog
+* Sat Oct 24 2026 Mohamed El Morabity <melmorabity@fedoraproject.org> - 8.6.2-1
+- Update to 8.6.2
+
 * Fri Sep 18 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 8.4.0-5
 - Backport fix for urllib 2.8.0 compatibility
 

diff --git a/sources b/sources
index 67f835a..92638f3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (streamlink-8.4.0.tar.gz) = 12061b16b80efec7de1d92fb83b556fa14aac34c6dccab077f133656576ee9b20c8c497b8f03cc4aeae51b8c90a610c26694e56256d88ac8925b157f1f717115
+SHA512 (streamlink-8.6.2.tar.gz) = 30914b84713c1a2ed1e34188fdc313583b27013e0c208920d6dcc8f6bdea07f7c8be86f20acd84a08da8094f69d12db6cfcb79bbd2c4239df5c36eb1b92271a0

                 reply	other threads:[~2026-10-24  5:43 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=179282059647.1.7382462368302495373.rpms-python-streamlink-26d5178aa6b6@fedoraproject.org \
    --to=melmorabity@fedoraproject.org \
    --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