From 599586295bf00293b18d35da88854139bfa6946286ddb58c8e924171c67c1fde Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 31 Aug 2021 09:12:29 +0000 Subject: [PATCH] Accepting request 915107 from home:simonpuchert:branches:multimedia:apps - Add python-requests-version.patch: * Revert a commit that increased the version requirements as the required version is not available in Factory. OBS-URL: https://build.opensuse.org/request/show/915107 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=22 --- python-requests-version.patch | 12 ++++++++++++ streamlink.changes | 7 +++++++ streamlink.spec | 4 ++++ 3 files changed, 23 insertions(+) create mode 100644 python-requests-version.patch diff --git a/python-requests-version.patch b/python-requests-version.patch new file mode 100644 index 0000000..8fda96a --- /dev/null +++ b/python-requests-version.patch @@ -0,0 +1,12 @@ +diff -Nur streamlink-2.3.0/setup.py streamlink-2.3.0-patched/setup.py +--- streamlink-2.3.0/setup.py 2021-07-26 02:24:06.000000000 +0200 ++++ streamlink-2.3.0-patched/setup.py 2021-08-30 16:54:33.133224469 +0200 +@@ -12,7 +12,7 @@ + deps = [ + # Temporarily set requests to 2.25.1 on Windows to fix issues with randomly failing tests + # Don't force an older requests version on non-Windows systems due to packaging reasons +- "requests>=2.26.0,<3.0 ; platform_system!='Windows'", ++ "requests>=2.21.0,<3.0 ; platform_system!='Windows'", + "requests==2.25.1 ; platform_system=='Windows'", + "isodate", + "websocket-client>=0.58.0", diff --git a/streamlink.changes b/streamlink.changes index 10adb6c..4428a8d 100644 --- a/streamlink.changes +++ b/streamlink.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Aug 30 15:51:53 UTC 2021 - Simon Puchert + +- Add python-requests-version.patch: + * Revert a commit that increased the version requirements as the + required version is not available in Factory. + ------------------------------------------------------------------- Mon Aug 16 19:40:16 UTC 2021 - Simon Puchert diff --git a/streamlink.spec b/streamlink.spec index 16dd665..653b727 100644 --- a/streamlink.spec +++ b/streamlink.spec @@ -26,6 +26,9 @@ 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 +# Revert the increased requirements for now since we don't have +# python-requests 2.26 yet. +Patch0: python-requests-version.patch BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -66,6 +69,7 @@ Streamlink is a fork of the livestreamer project. %prep %setup -q +%patch0 -p1 %build %python3_build