From 54dd6ed65d856a6deb409049d3c7419a0ae75b04014b4a7ba10eefb895610f2c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 22 May 2021 11:11:44 +0000 Subject: [PATCH] Accepting request 894454 from home:MasterPatricko:branches:multimedia:apps - Update to 2.1.1 - Fix tests at build time (streamlink-fix_removed_plugin_test.patch, #3653) OBS-URL: https://build.opensuse.org/request/show/894454 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=17 --- streamlink-2.0.0.tar.gz | 3 --- streamlink-2.1.1.tar.gz | 3 +++ streamlink-fix_removed_plugin_test.patch | 22 ++++++++++++++++++++++ streamlink.changes | 21 +++++++++++++++++++++ streamlink.spec | 23 ++++++++++++++++++++++- 5 files changed, 68 insertions(+), 4 deletions(-) delete mode 100644 streamlink-2.0.0.tar.gz create mode 100644 streamlink-2.1.1.tar.gz create mode 100644 streamlink-fix_removed_plugin_test.patch diff --git a/streamlink-2.0.0.tar.gz b/streamlink-2.0.0.tar.gz deleted file mode 100644 index 8063715..0000000 --- a/streamlink-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac2dd3acb0b64a6105a72ef74b14405d06cb976d6b84b5024e715e1b8c443571 -size 480848 diff --git a/streamlink-2.1.1.tar.gz b/streamlink-2.1.1.tar.gz new file mode 100644 index 0000000..aa9bd05 --- /dev/null +++ b/streamlink-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fe3dc899f200ada9b58f7ad2e08f6d40c6ea312906ad1e340c009c72c12be8f +size 484633 diff --git a/streamlink-fix_removed_plugin_test.patch b/streamlink-fix_removed_plugin_test.patch new file mode 100644 index 0000000..af39173 --- /dev/null +++ b/streamlink-fix_removed_plugin_test.patch @@ -0,0 +1,22 @@ +From 05c3daad638073efb520ca3c27201cb41c341bc3 Mon Sep 17 00:00:00 2001 +From: Alexis Murzeau +Date: Fri, 26 Mar 2021 22:58:52 +0100 +Subject: [PATCH] build: include .removed file in build + +This file is required by tests when executing them with the build dir. +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.py b/setup.py +index ac1bc9294a..9db3a46a50 100644 +--- a/setup.py ++++ b/setup.py +@@ -98,6 +98,7 @@ def is_wheel_for_windows(): + license="Simplified BSD", + packages=find_packages("src"), + package_dir={"": "src"}, ++ package_data={"streamlink.plugins": [".removed"]}, + entry_points=entry_points, + data_files=data_files, + install_requires=deps, diff --git a/streamlink.changes b/streamlink.changes index 9672d39..c1f9ceb 100644 --- a/streamlink.changes +++ b/streamlink.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Wed May 19 22:13:33 UTC 2021 - Tejas Guruswamy + +- Update to 2.1.1 + * Added: --interface, -4 / --ipv4 and -6 / --ipv6 (#3483) + * Added: --niconico-purge-credentials (#3434) + * Added: --twitcasting-password (#3505) + * Added: Linux AppImages (#3611) + * Added: pre-built man page to bdist wheels and sdist tarballs (#3459, #3510) + * Added: plugin for ahaber.com.tr and atv.com.tr (#3484), nimo.tv (#3508) + * Fixed: --player-http / --player-continuous-http HTTP server being bound to all interfaces (#3450) + * Fixed: handling of languages without alpha_2 code when using pycountry (#3518) + * Fixed: memory leak when calling streamlink.streams() (#3486) + * Fixed: race condition in HLS related tests (#3454) + * Fixed: --player-fifo issues on Windows with VLC or MPV (#3619) + * Fixed: various plugins issues (see detailed changelog down below) + * Removed: Windows portable (RosadinTV) (#3535) + * Removed: plugin for micous.com (#3457), ntvspor.net (#3485), btsports (#3636) + * Dependencies: set websocket-client to >=0.58.0 (#3634) +- Fix tests at build time (streamlink-fix_removed_plugin_test.patch, #3653) + ------------------------------------------------------------------- Thu Feb 18 22:14:02 UTC 2021 - Dirk Müller diff --git a/streamlink.spec b/streamlink.spec index 0cc767c..bd5b745 100644 --- a/streamlink.spec +++ b/streamlink.spec @@ -16,26 +16,43 @@ # +%define pythons python3 Name: streamlink -Version: 2.0.0 +Version: 2.1.1 Release: 0 Summary: Program to pipe streams from services into a video player License: BSD-2-Clause Group: Development/Languages/Python URL: https://streamlink.github.io/ Source: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +# PATCH-FIX-UPSTREAM streamlink-fix_removed_plugin_test.patch https://github.com/streamlink/streamlink/pull/3653 +Patch0: streamlink-fix_removed_plugin_test.patch + BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx BuildRequires: python3-devel >= 3.4 BuildRequires: python3-requests >= 1.0 BuildRequires: python3-setuptools + +# TEST REQUIREMENTS +BuildRequires: python3-pytest +BuildRequires: python3-PySocks +BuildRequires: python3-freezegun +BuildRequires: python3-isodate +BuildRequires: python3-pycountry +BuildRequires: python3-pycryptodome +BuildRequires: python3-requests-mock +BuildRequires: python3-websocket-client + Requires: python3-PySocks Requires: python3-isodate Requires: python3-pycountry Requires: python3-pycryptodome Requires: python3-requests >= 1.0 Requires: python3-websocket-client + Recommends: vlc Suggests: ffmpeg Suggests: rtmpdump @@ -51,6 +68,7 @@ Streamlink is a fork of the livestreamer project. %prep %setup -q +%patch0 -p1 %build %python3_build @@ -70,6 +88,9 @@ find %{buildroot}{%{python3_sitelib},%{python_sitelib}} -type f -name '*.py' | w done %fdupes -s %{buildroot} +%check +%pytest + %files %license LICENSE %doc AUTHORS CHANGELOG.md MANIFEST.in README.md