[packages/python-s3transfer] - updated to 0.4.2
qboosh
qboosh at pld-linux.org
Sun Oct 22 18:02:20 CEST 2023
commit c28c43f1deb86a89528a77210bd7bb70cd87ba3e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 22 18:04:19 2023 +0200
- updated to 0.4.2
python-s3transfer-mock.patch | 14 ++++++++++++++
python-s3transfer.spec | 7 ++++---
2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/python-s3transfer.spec b/python-s3transfer.spec
index af9298e..ea30f7e 100644
--- a/python-s3transfer.spec
+++ b/python-s3transfer.spec
@@ -7,14 +7,14 @@
Summary: Amazon S3 Transfer Manager
Summary(pl.UTF-8): Zarządca transferu danych Amazon S3
Name: python-s3transfer
-# keep < 0.5 here for python2 support, aligned with python-boto3.spec
-Version: 0.3.7
+# keep 0.4.x here for python2 support
+Version: 0.4.2
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/s3transfer/
Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
-# Source0-md5: 665572c41635914e419631e57dd2a365
+# Source0-md5: a6771f1bbff440e3c7f550357c3e5ee1
Patch0: %{name}-mock.patch
Patch1: %{name}-tests.patch
URL: https://pypi.org/project/s3transfer/
@@ -24,6 +24,7 @@ BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-botocore >= 1.12.36
BuildRequires: python-futures >= 2.2.0
+BuildRequires: python-futures < 4
BuildRequires: python-mock >= 1.3.0
BuildRequires: python-nose >= 1.3.3
BuildRequires: python-six
diff --git a/python-s3transfer-mock.patch b/python-s3transfer-mock.patch
index 74ba9c2..4b10ccf 100644
--- a/python-s3transfer-mock.patch
+++ b/python-s3transfer-mock.patch
@@ -54,6 +54,20 @@
from tests import unittest
from s3transfer.bandwidth import RequestExceededException
+--- s3transfer-0.4.2/tests/unit/test_crt.py.orig 2021-04-22 20:10:22.000000000 +0200
++++ s3transfer-0.4.2/tests/unit/test_crt.py 2023-10-22 17:54:57.308087991 +0200
+@@ -11,7 +11,10 @@
+ # ANY KIND, either express or implied. See the License for the specific
+ # language governing permissions and limitations under the License.
+ import unittest
+-import mock
++try:
++ import mock
++except ImportError:
++ from unittest import mock
+
+ from botocore.session import Session
+ from botocore.credentials import CredentialResolver, ReadOnlyCredentials
--- s3transfer-0.3.4/tests/unit/test_download.py.orig 2021-01-11 20:17:48.000000000 +0100
+++ s3transfer-0.3.4/tests/unit/test_download.py 2021-02-14 10:54:24.266848646 +0100
@@ -15,7 +15,10 @@ import os
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-s3transfer.git/commitdiff/c28c43f1deb86a89528a77210bd7bb70cd87ba3e
More information about the pld-cvs-commit
mailing list