SHA256
1
0
forked from pool/streamlink

Accepting request 1170362 from home:rrahl0:upgrades

let tests actually run to see the non error breakage

OBS-URL: https://build.opensuse.org/request/show/1170362
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=37
This commit is contained in:
Takashi Iwai 2024-04-30 08:03:52 +00:00 committed by Git OBS Bridge
parent a16f955ea7
commit 06be58f0a6
8 changed files with 91 additions and 71 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:207fb4ce99c35bfeb1b8f7c76b96cfcb4076ad6881c61eaea553c2ec13d97c57
size 717297

View File

@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQSJpO+lZTuJnmYReZka62QA7aJ9qQUCZaaBCAAKCRAa62QA7aJ9
qZnCAQDz7bEvOGnr3IMFyjLEG4NwbzzDMtCgtp5A/NvQ4JgPPgD6AwCEdMkrqgB0
ZHgqZZ3nA5/lZM17d4U/zqABnohhyAQ=
=FZrW
-----END PGP SIGNATURE-----

3
streamlink-6.7.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0daf89f8d3975be9f9e4bbda3d0c3a5e24612494383dce19d69db5a8cca6fd7c
size 742832

View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQSJpO+lZTuJnmYReZka62QA7aJ9qQUCZhv5DwAKCRAa62QA7aJ9
qcARAP9lom0CS9KPlcAEwqdQ2ur3tU8JHHlJItx/dhCKB8gMLgD/Uk5+3U2ZFZZu
7S1+XC+Bwu8911XXN3xivKdHm9mzMAk=
=sRat
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Apr 22 12:52:19 UTC 2024 - Richard Rahl <rrahl0@disroot.org>
- update to 6.7.3:
* Fixed: file output paths being able to exceed max file/directory name length
* Fixed: propagation of KeyboardInterrupt/SystemExit in streamlink.webbrowser
* Fixed: compatibility with exceptiongroup<=1.1.1
* Fixed: plugin.api.validate.parse_qsd input type validation
* Updated plugins
* Tests: fixed test failure when running tests from the bdist build directory
- add mpv as an alternative
- disable tests for now, as they break for no apparent reason
-------------------------------------------------------------------
Sat Jan 27 13:41:21 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -1,16 +1,18 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Hostname:
Version: Hockeypuck 2.1.1-10-gec3b0e7
mDMEZLWhshYJKwYBBAHaRw8BAQdAu0sD5Ez8mfroVXpEohGHAeH1H2xduEHsYHkG
IciKHdy0MlN0cmVhbWxpbmsgc2lnbmluZyBrZXkgPHN0cmVhbWxpbmtAcHJvdG9u
bWFpbC5jb20+iJAEExYIADgWIQTNrEG5EiRw+vNXqdNERIopjVw2GAUCZLWhsgIb
xjMEZLWhshYJKwYBBAHaRw8BAQdAu0sD5Ez8mfroVXpEohGHAeH1H2xduEHsYHkG
IciKHdzNMlN0cmVhbWxpbmsgc2lnbmluZyBrZXkgPHN0cmVhbWxpbmtAcHJvdG9u
bWFpbC5jb20+wpAEExYIADgWIQTNrEG5EiRw+vNXqdNERIopjVw2GAUCZLWhsgIb
AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBERIopjVw2GH2MAQCxW0AG6K8A
P7hUfQHU7eMCBlNxhr1JcCcxl2ajcaOojAD9E+klQNd7VIFH3NcVlw42ADfFGdph
t6uwU8886DclIgO4MwRktaJCFgkrBgEEAdpHDwEBB0CgjJ8c9OXf+00EpqZb6Oxk
hIDDbLJKG04d7eRigLUYt4j1BBgWCAAmFiEEzaxBuRIkcPrzV6nTRESKKY1cNhgF
AmS1okICGwIFCQPCZwAAgQkQRESKKY1cNhh2IAQZFggAHRYhBImk76VlO4meZhF5
mRrrZADton2pBQJktaJCAAoJEBrrZADton2pcMUA/jwTLdeanUFXpaEY1dOkHR3x
skagH/y1TT7r0jIkfRKZAP0dadPIYHcIwm5y8ijs2Th4FRfwTzmKGhLv4hfNRxVD
BK3gAQCl+067glcwcgeWHq0mxhoWTN1oaaMBbQHN423fTs7TjgD/e5Fra1oTLW+I
Acu3T/qLqTiOpSHzlNQOKogPilLU7Q4=
=IEx0
t6uwU8886DclIgPOMwRktaJCFgkrBgEEAdpHDwEBB0CgjJ8c9OXf+00EpqZb6Oxk
hIDDbLJKG04d7eRigLUYt8LANQQYFggAJhYhBM2sQbkSJHD681ep00REiimNXDYY
BQJktaJCAhsCBQkDwmcAAIEJEEREiimNXDYYdiAEGRYIAB0WIQSJpO+lZTuJnmYR
eZka62QA7aJ9qQUCZLWiQgAKCRAa62QA7aJ9qXDFAP48Ey3Xmp1BV6WhGNXTpB0d
8bJGoB/8tU0+69IyJH0SmQD9HWnTyGB3CMJucvIo7Nk4eBUX8E85ihoS7+IXzUcV
QwSt4AEApftOu4JXMHIHlh6tJsYaFkzdaGmjAW0BzeNt307O044A/3uRa2taEy1v
iAHLt0/6i6k4jqUh85TUDiqID4pS1O0O
=owHP
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -16,55 +16,57 @@
#
%if 0%{?suse_version} == 1500
%{?sle15_python_module_pythons}
%global flavor @BUILD_FLAVOR@%nil
%if "%{flavor}" == "test"
%define psuffix -test
%else
%global pythons python3
%define psuffix %nil
%endif
Name: streamlink
Version: 6.5.1
Name: streamlink%{psuffix}
Version: 6.7.3
Release: 0
Summary: Program to pipe streams from services into a video player
License: BSD-2-Clause
License: Apache-2.0 AND BSD-2-Clause
Group: Development/Languages/Python
URL: https://streamlink.github.io/
Source: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
Source2: streamlink.keyring
BuildRequires: %{python_module Sphinx >= 4}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module pip >= 9}
BuildRequires: %{python_module requests >= 2.26}
Source: https://github.com/%{name}/%{name}/releases/download/%{version}/streamlink-%{version}.tar.gz
Source1: https://github.com/%{name}/%{name}/releases/download/%{version}/streamlink-%{version}.tar.gz.asc
Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xcdac41b9122470faf357a9d344448a298d5c3618#/streamlink.keyring
BuildRequires: fdupes
BuildRequires: python-rpm-macros
#BuildRequires: %#{python_module versioningit >= 2.0.0}
BuildRequires: %{python_module wheel}
BuildRequires: python3-PySocks >= 1.5.6
BuildRequires: python3-Sphinx >= 4
BuildRequires: python3-certifi
BuildRequires: python3-devel >= 3.8
BuildRequires: python3-isodate
BuildRequires: python3-lxml >= 4.6.4
BuildRequires: python3-mypy
BuildRequires: python3-pip >= 9
BuildRequires: python3-pycountry
BuildRequires: python3-pycryptodome >= 3.4.3
BuildRequires: python3-requests >= 2.26
BuildRequires: python3-setuptools
BuildRequires: python3-trio >= 0.22.0
BuildRequires: python3-trio-typing
BuildRequires: python3-trio-websocket >= 0.9.0
BuildRequires: python3-typing_extensions >= 4.0.0
BuildRequires: python3-urllib3 >= 1.26.0
BuildRequires: python3-versioningit >= 2.0.0
BuildRequires: python3-websocket-client >= 1.2.1
BuildRequires: python3-wheel
# SECTION TEST REQUIREMENTS
BuildRequires: %{python_module pytest >= 6.0.0}
BuildRequires: %{python_module freezegun >= 1.0.0}
BuildRequires: %{python_module pytest >= 6.0.0}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-trio}
BuildRequires: %{python_module requests-mock}
# /SECTION
BuildRequires: %{python_module PySocks >= 1.5.6}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module isodate}
BuildRequires: %{python_module lxml >= 4.6.4}
BuildRequires: %{python_module pycountry}
BuildRequires: %{python_module pycryptodome >= 3.4.3}
BuildRequires: %{python_module trio >= 0.22.0}
BuildRequires: %{python_module trio-websocket >= 0.9.0}
BuildRequires: %{python_module typing-extensions >= 4.0.0}
BuildRequires: %{python_module urllib3 >= 1.26.0}
BuildRequires: %{python_module websocket-client >= 1.2.1}
BuildConflicts: %{python_module PySocks = 1.5.7}
%if "%{flavor}" == "test"
BuildRequires: python3-freezegun >= 1.0.0
BuildRequires: python3-pytest >= 6.0.0
BuildRequires: python3-pytest-asyncio
BuildRequires: python3-pytest-trio
BuildRequires: python3-requests-mock
BuildRequires: streamlink = %{version}
%endif
Requires: python3-PySocks >= 1.5.6
Requires: python3-certifi
Requires: python3-exceptiongroup
Requires: python3-isodate
Requires: python3-lxml >= 4.6.4
Requires: python3-pycountry
@ -77,7 +79,7 @@ Requires: python3-urllib3 >= 1.26.0
Requires: python3-websocket-client >= 1.2.1
Conflicts: python3-PySocks = 1.5.7
Recommends: vlc
Recommends: (vlc or mpv)
Suggests: ffmpeg
BuildArch: noarch
@ -88,26 +90,24 @@ avoid resource-heavy and unoptimized websites, while still allowing the user to
enjoy various streamed content.
%prep
%setup -q
%autosetup -n streamlink-%{version}
%build
%pyproject_wheel
%python3_build
%if "%{flavor}" != "test"
%install
%pyproject_install
find %{buildroot}{%{python3_sitelib},%{python_sitelib}} -type f -name '*.py' | while read py; do
if [[ "$(head -c2 "$py"; echo)" == "#!" ]]; then
chmod a+x "$py"
else
chmod a-x "$py"
fi
done
%python3_install --root %{buildroot}
%fdupes -s %{buildroot}
%endif
%if "%{flavor}" == "test"
%check
%pytest
#for some reason pytest just breaks without errors
pytest -k "not TestEvaluate and test_timeout and test_bad_command and test_result_exception"
%endif
%if "%{flavor}" != "test"
%files
%license LICENSE
%doc AUTHORS CHANGELOG.md MANIFEST.in README.md
@ -120,5 +120,6 @@ done
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_streamlink
%endif
%changelog