Compare commits

2 Commits

Author SHA256 Message Date
ae8467b551 Accepting request 1277650 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parfive?expand=0&rev=7
2025-05-15 15:01:49 +00:00
85d05831bf Accepting request 1277541 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1277541
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parfive?expand=0&rev=13
2025-05-15 08:37:26 +00:00
3 changed files with 1 additions and 23 deletions

View File

@@ -1,9 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-parfive
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,8 +24,6 @@ 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}

View File

@@ -1,14 +0,0 @@
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