From bf7f2a2fc5e3bc2529764dd074f3f2b838a469dfff67dd846548a4f8186d921c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 23 Jun 2020 07:41:54 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-parfive?expand=0&rev=5 --- parfive-1.0.0.tar.gz | 3 --- parfive-1.1.0.tar.gz | 3 +++ python-parfive.changes | 17 +++++++++++++++++ python-parfive.spec | 17 +++++++++++++---- 4 files changed, 33 insertions(+), 7 deletions(-) delete mode 100644 parfive-1.0.0.tar.gz create mode 100644 parfive-1.1.0.tar.gz diff --git a/parfive-1.0.0.tar.gz b/parfive-1.0.0.tar.gz deleted file mode 100644 index 4bdafc2..0000000 --- a/parfive-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15dc8466922c8fb1f814d3f7c3f3656191ac17b38fd7cc3350b9bf726e144ebb -size 14462 diff --git a/parfive-1.1.0.tar.gz b/parfive-1.1.0.tar.gz new file mode 100644 index 0000000..77f03ad --- /dev/null +++ b/parfive-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:faa60c34dfbd080f011c1af0587f932874dcdf602d0336227d540899dbc41b50 +size 20370 diff --git a/python-parfive.changes b/python-parfive.changes index 982be0e..4bbf904 100644 --- a/python-parfive.changes +++ b/python-parfive.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Tue Jun 23 07:39:57 UTC 2020 - Steve Kowalik + +- 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 diff --git a/python-parfive.spec b/python-parfive.spec index 19c5c04..1e3066e 100644 --- a/python-parfive.spec +++ b/python-parfive.spec @@ -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