Accepting request 598518 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/598518 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-s3transfer?expand=0&rev=6
This commit is contained in:
parent
1f73e94fb5
commit
3611858b0d
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 19 10:37:34 UTC 2018 - mimi.vx@gmail.com
|
||||
|
||||
- update to 0.1.13
|
||||
- add system-requests.patch - use system python-requests
|
||||
* Plumb ``RequestPayer` argument to the ``CompleteMultipartUpload` operation
|
||||
* enhancement:max_bandwidth: Add ability to set maximum bandwidth consumption
|
||||
for streaming of S3 uploads and downloads
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 9 23:03:07 UTC 2017 - rjschwei@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-s3transfer
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-s3transfer
|
||||
Version: 0.1.11
|
||||
Version: 0.1.13
|
||||
Release: 0
|
||||
Summary: Python S3 transfer manager
|
||||
License: Apache-2.0
|
||||
@ -26,12 +26,14 @@ Group: Development/Languages/Python
|
||||
Url: https://github.com/boto/s3transfer
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
|
||||
Patch0: hide_py_pckgmgmt.patch
|
||||
Patch1: system-requests.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-botocore <= 2.0.0
|
||||
Requires: python-botocore >= 1.4.10
|
||||
Requires: python-requests
|
||||
%ifpython2
|
||||
Requires: python-futures <= 4.0.0
|
||||
Requires: python-futures >= 2.2.0
|
||||
@ -46,6 +48,7 @@ A transfer manager for Amazon Web Services S3
|
||||
%prep
|
||||
%setup -q -n s3transfer-%{version}
|
||||
%patch0
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76f1f58f4a47e2c8afa135e2c76958806a3abbc42b721d87fd9d11409c75d979
|
||||
size 95555
|
3
s3transfer-0.1.13.tar.gz
Normal file
3
s3transfer-0.1.13.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:90dc18e028989c609146e241ea153250be451e05ecc0c2832565231dacdf59c1
|
||||
size 103335
|
19
system-requests.patch
Normal file
19
system-requests.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Index: s3transfer-0.1.13/s3transfer/__init__.py
|
||||
===================================================================
|
||||
--- s3transfer-0.1.13.orig/s3transfer/__init__.py
|
||||
+++ s3transfer-0.1.13/s3transfer/__init__.py
|
||||
@@ -134,8 +134,12 @@ import string
|
||||
import concurrent.futures
|
||||
|
||||
from botocore.compat import six
|
||||
-from botocore.vendored.requests.packages.urllib3.exceptions import \
|
||||
- ReadTimeoutError
|
||||
+
|
||||
+try:
|
||||
+ from botocore.vendored.requests.packages.urllib3.exceptions import ReadTimeoutError
|
||||
+except ImportError:
|
||||
+ from requests.packages.urllib3.exceptions import ReadTimeoutError
|
||||
+
|
||||
from botocore.exceptions import IncompleteReadError
|
||||
|
||||
import s3transfer.compat
|
Loading…
Reference in New Issue
Block a user