forked from pool/python-parfive
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bdc0b11120 | |||
| 7a3baa2a21 | |||
| 77797f04b8 | |||
| c2d7d82095 |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 24 01:39:45 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-python314.patch:
|
||||||
|
* Do not use return inside a finally block.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 15 05:20:40 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Thu May 15 05:20:40 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-parfive
|
# spec file for package python-parfive
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,6 +24,8 @@ Summary: A HTTP and FTP parallel file downloader
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://parfive.readthedocs.io/
|
URL: https://parfive.readthedocs.io/
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/parfive/parfive-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/parfive/parfive-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE Do not use return inside a finally block
|
||||||
|
Patch0: support-python314.patch
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
|
|||||||
14
support-python314.patch
Normal file
14
support-python314.patch
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Index: parfive-2.2.0/parfive/downloader.py
|
||||||
|
===================================================================
|
||||||
|
--- parfive-2.2.0.orig/parfive/downloader.py
|
||||||
|
+++ parfive-2.2.0/parfive/downloader.py
|
||||||
|
@@ -317,8 +317,7 @@ class Downloader:
|
||||||
|
task.cancel()
|
||||||
|
dl_results = await asyncio.gather(*tasks, return_exceptions=True)
|
||||||
|
|
||||||
|
- finally:
|
||||||
|
- return self._format_results(dl_results, main_pb)
|
||||||
|
+ return self._format_results(dl_results, main_pb)
|
||||||
|
|
||||||
|
def _format_results(self, retvals, main_pb):
|
||||||
|
# Squash all nested lists into a single flat list
|
||||||
Reference in New Issue
Block a user