Github messages for voidlinux
 help / color / mirror / Atom feed
From: tstraus13 <tstraus13@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] streamlink: update to 6.7.3
Date: Tue, 07 May 2024 03:08:47 +0200	[thread overview]
Message-ID: <20240507010847.449B2261B2@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50098@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

There is an updated pull request by tstraus13 against master on the void-packages repository

https://github.com/tstraus13/void-packages trio-websocket
https://github.com/void-linux/void-packages/pull/50098

streamlink: update to 6.7.3
It is a requirement for updating the streamlink package which I plan to do once this has been accepted/merged. I have been looking at the streamlink package and it is a little behind and this seems to be the only missing python3 package from the repositories that it needs. Void currently has the python3-trio package, which is used as a starting point for this template. If there is more that is needed for this package, or if I missed anything, in the template let me know. Thanks.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86-64-musl


A patch file from https://github.com/void-linux/void-packages/pull/50098.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-trio-websocket-50098.patch --]
[-- Type: text/x-diff, Size: 6858 bytes --]

From de6daabda8dec278dabf4b07b8196f1c1fa4c413 Mon Sep 17 00:00:00 2001
From: Tom Strausbaugh <tstrausbaugh@straustech.net>
Date: Sun, 28 Apr 2024 10:12:13 -0400
Subject: [PATCH 1/2] New package: python3-trio-websocket-0.11.1

---
 srcpkgs/python3-trio-websocket/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/python3-trio-websocket/template

diff --git a/srcpkgs/python3-trio-websocket/template b/srcpkgs/python3-trio-websocket/template
new file mode 100644
index 00000000000000..cd62e5f2420384
--- /dev/null
+++ b/srcpkgs/python3-trio-websocket/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-trio-websocket'
+pkgname=python3-trio-websocket
+version=0.11.1
+revision=1
+build_style=python3-pep517
+make_check_args="--ignore tests/test_connection.py"
+hostmakedepends="python3-setuptools python3-wheel"
+depends="python3-trio python3-wsproto"
+checkdepends="$depends python3-pytest iana-etc pylint python3-astroid
+ python3-async_generator python3-jedi python3-openssl python3-trustme"
+short_desc="Library implementing server and client WebSocket protocol"
+maintainer="Tom Strausbaugh <tstrausbaugh@straustech.net>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/python-trio/trio-websocket"
+changelog="https://raw.githubusercontent.com/python-trio/trio-websocket/master/CHANGELOG.md"
+distfiles="${PYPI_SITE}/t/trio-websocket/trio-websocket-${version}.tar.gz"
+checksum=18c11793647703c158b1f6e62de638acada927344d534e3c7628eedcb746839f
+make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1"
+
+post_install() {
+	vlicense LICENSE
+}

From b32ab24447c6dda8770e7376afef5159ea6e36f8 Mon Sep 17 00:00:00 2001
From: Tom Strausbaugh <tstrausbaugh@straustech.net>
Date: Sun, 28 Apr 2024 14:35:20 -0400
Subject: [PATCH 2/2] Update: streamlink-6.7.3

---
 srcpkgs/streamlink/patches/streamlink.patch | 102 ++++++++++++++++++++
 srcpkgs/streamlink/template                 |  10 +-
 2 files changed, 107 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/streamlink/patches/streamlink.patch

diff --git a/srcpkgs/streamlink/patches/streamlink.patch b/srcpkgs/streamlink/patches/streamlink.patch
new file mode 100644
index 00000000000000..5b260226d73126
--- /dev/null
+++ b/srcpkgs/streamlink/patches/streamlink.patch
@@ -0,0 +1,102 @@
+exceptiongroup is for python<3.11 compat
+
+--- a/src/streamlink.egg-info/requires.txt
++++ b/src/streamlink.egg-info/requires.txt
+@@ -1,5 +1,4 @@
+ certifi
+-exceptiongroup
+ isodate
+ lxml<6,>=4.6.4
+ pycountry
+--- a/src/streamlink.egg-info/PKG-INFO
++++ b/src/streamlink.egg-info/PKG-INFO
+@@ -32,7 +32,6 @@
+ Description-Content-Type: text/markdown
+ License-File: LICENSE
+ Requires-Dist: certifi
+-Requires-Dist: exceptiongroup
+ Requires-Dist: isodate
+ Requires-Dist: lxml<6,>=4.6.4
+ Requires-Dist: pycountry
+--- a/PKG-INFO
++++ b/PKG-INFO
+@@ -32,7 +32,6 @@
+ Description-Content-Type: text/markdown
+ License-File: LICENSE
+ Requires-Dist: certifi
+-Requires-Dist: exceptiongroup
+ Requires-Dist: isodate
+ Requires-Dist: lxml<6,>=4.6.4
+ Requires-Dist: pycountry
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -56,7 +56,6 @@
+ requires-python = ">=3.8"
+ dependencies = [
+   "certifi",
+-  "exceptiongroup",
+   "isodate",
+   "lxml >=4.6.4,<6",
+   "pycountry",
+--- a/src/streamlink/plugins/twitch.py
++++ b/src/streamlink/plugins/twitch.py
+@@ -541,7 +541,6 @@
+         headers: Mapping[str, str],
+         device_id: str,
+     ) -> Optional[Tuple[str, int]]:
+-        from exceptiongroup import BaseExceptionGroup  # noqa: PLC0415, I001
+         from streamlink.webbrowser.cdp import CDPClient, CDPClientSession, devtools  # noqa: PLC0415
+ 
+         url = f"https://www.twitch.tv/{channel}"
+--- a/src/streamlink/webbrowser/webbrowser.py
++++ b/src/streamlink/webbrowser/webbrowser.py
+@@ -8,7 +8,6 @@
+ from typing import AsyncContextManager, AsyncGenerator, Generator, List, Optional, Union
+ 
+ import trio
+-from exceptiongroup import BaseExceptionGroup
+ 
+ from streamlink.utils.path import resolve_executable
+ from streamlink.webbrowser.exceptions import WebbrowserError
+--- a/src/streamlink/compat.py
++++ b/src/streamlink/compat.py
+@@ -5,9 +5,6 @@
+ import warnings
+ from typing import Any, Callable, Dict, Optional, Tuple
+ 
+-# import exceptiongroup, so it can monkeypatch ExceptionGroup logic on <=py311
+-import exceptiongroup  # noqa: F401
+-
+ from streamlink.exceptions import StreamlinkDeprecationWarning
+ 
+ 
+--- a/tests/webbrowser/test_webbrowser.py
++++ b/tests/webbrowser/test_webbrowser.py
+@@ -7,7 +7,6 @@
+ 
+ import pytest
+ import trio
+-from exceptiongroup import BaseExceptionGroup
+ 
+ from streamlink.compat import is_win32
+ from streamlink.webbrowser.exceptions import WebbrowserError
+--- a/tests/webbrowser/cdp/test_connection.py
++++ b/tests/webbrowser/cdp/test_connection.py
+@@ -7,7 +7,6 @@
+ 
+ import pytest
+ import trio
+-from exceptiongroup import ExceptionGroup
+ from trio.testing import MockClock, wait_all_tasks_blocked
+ from trio_websocket import CloseReason, ConnectionClosed, ConnectionTimeout  # type: ignore[import]
+ 
+--- a/tests/webbrowser/cdp/test_client.py
++++ b/tests/webbrowser/cdp/test_client.py
+@@ -4,7 +4,6 @@
+ 
+ import pytest
+ import trio
+-from exceptiongroup import ExceptionGroup
+ from trio.testing import wait_all_tasks_blocked
+ 
+ from streamlink.session import Streamlink
diff --git a/srcpkgs/streamlink/template b/srcpkgs/streamlink/template
index af7bfb2514aa87..18006c720eb3e1 100644
--- a/srcpkgs/streamlink/template
+++ b/srcpkgs/streamlink/template
@@ -1,21 +1,21 @@
 # Template file for 'streamlink'
 pkgname=streamlink
-version=5.5.1
-revision=2
+version=6.7.3
+revision=1
 build_style=python3-pep517
 hostmakedepends="python3-wheel python3-versioningit"
 depends="python3-lxml python3-pycryptodome python3-pycountry
  python3-pysocks python3-requests python3-websocket-client python3-isodate
- python3-urllib3 python3-certifi"
+ python3-urllib3 python3-certifi python3-typing_extensions python3-trio python3-trio-websocket"
 checkdepends="$depends python3-pytest python3-mock python3-requests-mock
  python3-freezegun python3-pytest-asyncio"
 short_desc="Utility extracting streams from services, forked from livestreamer"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Tom Strausbaugh <tstrausbaugh@straustech.net>"
 license="BSD-2-Clause"
 homepage="https://streamlink.github.io/"
 changelog="https://raw.githubusercontent.com/streamlink/streamlink/master/CHANGELOG.md"
 distfiles="https://github.com/streamlink/streamlink/releases/download/$version/streamlink-$version.tar.gz"
-checksum=b2b4fe8d6436dbe7bcec78de2d4bb780156388561435b61a1963156e9fc5fbd0
+checksum=0daf89f8d3975be9f9e4bbda3d0c3a5e24612494383dce19d69db5a8cca6fd7c
 make_check_pre="env PYTHONPATH=src"
 make_check=ci-skip # some tests fail when running as root
 

  parent reply	other threads:[~2024-05-07  1:08 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-28 14:39 [PR PATCH] New package: python3-trio-websocket-0.11.1 - Add python3-trio-websocket package tstraus13
2024-04-28 14:48 ` [PR PATCH] [Updated] " tstraus13
2024-04-28 15:01 ` tstraus13
2024-04-28 16:18 ` classabbyamp
2024-04-28 16:18 ` classabbyamp
2024-04-28 16:25 ` tstraus13
2024-04-28 16:34 ` [PR PATCH] [Updated] " tstraus13
2024-04-28 17:29 ` tstraus13
2024-04-28 17:31 ` classabbyamp
2024-04-28 17:54 ` tstraus13
2024-04-28 17:54 ` tstraus13
2024-04-28 18:14 ` [PR PATCH] [Closed]: " classabbyamp
2024-04-28 18:14 ` classabbyamp
2024-04-28 18:15 ` classabbyamp
2024-04-28 18:19 ` tstraus13
2024-04-28 18:35 ` [PR PATCH] [Updated] " tstraus13
2024-04-28 18:37 ` tstraus13
2024-04-28 18:44 ` tstraus13
2024-04-28 18:45 ` tstraus13
2024-04-28 18:48 ` [PR PATCH] [Updated] " tstraus13
2024-05-01  1:47 ` tstraus13
2024-05-01  2:08 ` tstraus13
2024-05-06 18:34 ` tstraus13
2024-05-06 23:14 ` classabbyamp
2024-05-06 23:18 ` tstraus13
2024-05-06 23:20 ` classabbyamp
2024-05-06 23:22 ` tstraus13
2024-05-06 23:25 ` tstraus13
2024-05-06 23:53 ` tstraus13
2024-05-06 23:54 ` streamlink: update to 6.7.3 classabbyamp
2024-05-06 23:57 ` tstraus13
2024-05-07  0:39 ` [PR PATCH] [Updated] " tstraus13
2024-05-07  0:44 ` tstraus13
2024-05-07  0:55 ` classabbyamp
2024-05-07  1:08 ` tstraus13 [this message]
2024-05-07  1:17 ` [PR PATCH] [Updated] " tstraus13
2024-05-07  1:19 ` tstraus13
2024-05-07  1:26 ` [PR PATCH] [Updated] " tstraus13
2024-05-07  1:29 ` tstraus13
2024-05-07  2:03 ` [PR PATCH] [Closed]: " classabbyamp

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=20240507010847.449B2261B2@inbox.vuxu.org \
    --to=tstraus13@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).