14
0

Accepting request 816513 from devel:languages:python

- Update to 1.1.0:
  * Features
    + Add concurent requests to parfive. This feature splits the download of a single file into multiple parts if the server the file is being downloaded from supports ranged requests. This should improve the performance of all downloads under these circumstances, and also make parfive useful even if downloading a single file. No changes are needed to use this feature, files will be downloaded using 12 concurrent requests by default. To change the number of concurrent requests you can pass max_splits to parfive.Downloader.enqueue_file. (#15)
    + Added CLI interface to Parfive. (#16)
    + Parfive now only supports Python 3.6+. (#22)
    + Support for specifying headers to be used for all requests to parfive.Downloader has been added. (#32)
    + Support for HTTP_PROXY and HTTPS_PROXY environment variables have been added. (#32)
  * Bugfixes
    + Fix a bug where running parfive in the notebook would error if ipywidgets was not installed. (#25)
    + Remove use of the deprecated loop= keyword argument to aiohttp.ClientSession. (#30)
    + Update the notebook detection function due to changes in tqdm (#36)
    + Reduce the number of parallel connections to 25 (5 parallel files, 5 parallel downloads per file). (#37)
- Sprinkle in update-alternatives for parfive wrapper.

OBS-URL: https://build.opensuse.org/request/show/816513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parfive?expand=0&rev=3
This commit is contained in:
2020-06-23 19:06:15 +00:00
committed by Git OBS Bridge
4 changed files with 33 additions and 7 deletions

View File

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

3
parfive-1.1.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Jun 23 07:39:57 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.1.0:
* Features
+ Add concurent requests to parfive. This feature splits the download of a single file into multiple parts if the server the file is being downloaded from supports ranged requests. This should improve the performance of all downloads under these circumstances, and also make parfive useful even if downloading a single file. No changes are needed to use this feature, files will be downloaded using 12 concurrent requests by default. To change the number of concurrent requests you can pass max_splits to parfive.Downloader.enqueue_file. (#15)
+ Added CLI interface to Parfive. (#16)
+ Parfive now only supports Python 3.6+. (#22)
+ Support for specifying headers to be used for all requests to parfive.Downloader has been added. (#32)
+ Support for HTTP_PROXY and HTTPS_PROXY environment variables have been added. (#32)
* Bugfixes
+ Fix a bug where running parfive in the notebook would error if ipywidgets was not installed. (#25)
+ Remove use of the deprecated loop= keyword argument to aiohttp.ClientSession. (#30)
+ Update the notebook detection function due to changes in tqdm (#36)
+ Reduce the number of parallel connections to 25 (5 parallel files, 5 parallel downloads per file). (#37)
- Sprinkle in update-alternatives for parfive wrapper.
-------------------------------------------------------------------
Mon Aug 26 05:50:30 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-parfive
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,12 +19,11 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-parfive
Version: 1.0.0
Version: 1.1.0
Release: 0
Summary: A HTTP and FTP parallel file downloader
License: MIT
Group: Development/Languages/Python
Url: https://parfive.readthedocs.io/
URL: https://parfive.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/p/parfive/parfive-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools_scm}
@@ -43,6 +42,8 @@ BuildRequires: %{python_module tqdm}
# /SECTION
Requires: python-aiohttp
Requires: python-tqdm
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-aioftp
BuildArch: noarch
@@ -63,14 +64,22 @@ provides an interface for inspecting any failed downloads.
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/parfive
%check
# Disable tests that require a network connection
%pytest -k 'not test_ftp and not test_ftp_http'
%post
%python_install_alternative parfive
%postun
%python_uninstall_alternative parfive
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%python_alternative %{_bindir}/parfive
%changelog