forked from pool/python-parfive
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bdc0b11120 | |||
| 7a3baa2a21 | |||
| 77797f04b8 | |||
| c2d7d82095 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd6cb419242130730cf41d4cf6f284ebf50f1a71ce6c9508e0467ec98f17dc8e
|
||||
size 33956
|
||||
3
parfive-2.2.0.tar.gz
Normal file
3
parfive-2.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de07d148d898e3f8ad6d6514e1d28e13f51d80de153fa1918c346509a5002e9b
|
||||
size 40007
|
||||
@@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Update to 2.2.0
|
||||
* Python 3.9 support has been dropped and 3.13 is now tested.
|
||||
* Checksums can now be verified when deciding to overwrite a file
|
||||
and when downloads are completed based on user or server provided
|
||||
checksums. (This is opt-in for now)
|
||||
* Add checksums support @Cadair (#165)
|
||||
* The first request to download a file will now attempt to use the
|
||||
HEAD method to read the checksum and content-disposition headers.
|
||||
If the HEAD request returns any status code other than 200 the old
|
||||
GET behaviour will be tried - Fix a 302 issue @Cadair (#170), Add a
|
||||
test for the head or get helper @Cadair (#169), Use a HEAD for the
|
||||
first request @Cadair (#168)
|
||||
* The URL associated with every downloaded file is now propagated
|
||||
through to the Results object
|
||||
* Add urls to results @samaloney (#146)
|
||||
* Fix a bug where result urls were not updated in retry @samaloney (#153)
|
||||
* Fix codecov @Cadair (#167)
|
||||
* Add type hints to _get_http @Cadair (#164)
|
||||
* Migrate away from setup.cfg and use more ruff @Cadair (#162)
|
||||
* Drop Python 3.9 as it's EOL and fix tests @Cadair (#161)
|
||||
- Use Python 3.11 on SLE-15 by default
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 14 07:44:07 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-parfive
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,13 +16,16 @@
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-parfive
|
||||
Version: 2.1.0
|
||||
Version: 2.2.0
|
||||
Release: 0
|
||||
Summary: A HTTP and FTP parallel file downloader
|
||||
License: MIT
|
||||
URL: https://parfive.readthedocs.io/
|
||||
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 pip}
|
||||
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