aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-10-11 13:22:30 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-10-11 13:56:06 +0300
commit1d645bbaca687855582cc1808b4f4508dfc6ba3f (patch)
tree473a6b1bd441b70e2578c4d4fb09728107ac8dde /contrib/python
parent0139ecc7de6397d11265ac6544574b8ab9933a7d (diff)
downloadydb-1d645bbaca687855582cc1808b4f4508dfc6ba3f.tar.gz
Update contrib/python/s3transfer/py3 to 0.7.0
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/s3transfer/py3/.dist-info/METADATA2
-rw-r--r--contrib/python/s3transfer/py3/s3transfer/__init__.py2
-rw-r--r--contrib/python/s3transfer/py3/s3transfer/copies.py8
-rw-r--r--contrib/python/s3transfer/py3/s3transfer/upload.py8
-rw-r--r--contrib/python/s3transfer/py3/tests/functional/test_copy.py4
-rw-r--r--contrib/python/s3transfer/py3/tests/functional/test_upload.py25
-rw-r--r--contrib/python/s3transfer/py3/ya.make2
7 files changed, 45 insertions, 6 deletions
diff --git a/contrib/python/s3transfer/py3/.dist-info/METADATA b/contrib/python/s3transfer/py3/.dist-info/METADATA
index 08cbb010141..c9979008eee 100644
--- a/contrib/python/s3transfer/py3/.dist-info/METADATA
+++ b/contrib/python/s3transfer/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: s3transfer
-Version: 0.6.2
+Version: 0.7.0
Summary: An Amazon S3 Transfer Manager
Home-page: https://github.com/boto/s3transfer
Author: Amazon Web Services
diff --git a/contrib/python/s3transfer/py3/s3transfer/__init__.py b/contrib/python/s3transfer/py3/s3transfer/__init__.py
index ff0914a98fe..e046566d50b 100644
--- a/contrib/python/s3transfer/py3/s3transfer/__init__.py
+++ b/contrib/python/s3transfer/py3/s3transfer/__init__.py
@@ -144,7 +144,7 @@ import s3transfer.compat
from s3transfer.exceptions import RetriesExceededError, S3UploadFailedError
__author__ = 'Amazon Web Services'
-__version__ = '0.6.2'
+__version__ = '0.7.0'
class NullHandler(logging.Handler):
diff --git a/contrib/python/s3transfer/py3/s3transfer/copies.py b/contrib/python/s3transfer/py3/s3transfer/copies.py
index a42b848fb8f..77deca627e4 100644
--- a/contrib/python/s3transfer/py3/s3transfer/copies.py
+++ b/contrib/python/s3transfer/py3/s3transfer/copies.py
@@ -69,7 +69,13 @@ class CopySubmissionTask(SubmissionTask):
'TaggingDirective',
]
- COMPLETE_MULTIPART_ARGS = ['RequestPayer', 'ExpectedBucketOwner']
+ COMPLETE_MULTIPART_ARGS = [
+ 'SSECustomerKey',
+ 'SSECustomerAlgorithm',
+ 'SSECustomerKeyMD5',
+ 'RequestPayer',
+ 'ExpectedBucketOwner',
+ ]
def _submit(
self, client, config, osutil, request_executor, transfer_future
diff --git a/contrib/python/s3transfer/py3/s3transfer/upload.py b/contrib/python/s3transfer/py3/s3transfer/upload.py
index 0c99bd7b296..c834c52af91 100644
--- a/contrib/python/s3transfer/py3/s3transfer/upload.py
+++ b/contrib/python/s3transfer/py3/s3transfer/upload.py
@@ -521,7 +521,13 @@ class UploadSubmissionTask(SubmissionTask):
'ExpectedBucketOwner',
]
- COMPLETE_MULTIPART_ARGS = ['RequestPayer', 'ExpectedBucketOwner']
+ COMPLETE_MULTIPART_ARGS = [
+ 'SSECustomerKey',
+ 'SSECustomerAlgorithm',
+ 'SSECustomerKeyMD5',
+ 'RequestPayer',
+ 'ExpectedBucketOwner',
+ ]
def _get_upload_input_manager_cls(self, transfer_future):
"""Retrieves a class for managing input for an upload based on file type
diff --git a/contrib/python/s3transfer/py3/tests/functional/test_copy.py b/contrib/python/s3transfer/py3/tests/functional/test_copy.py
index 64297cf4f2a..e6694e036f6 100644
--- a/contrib/python/s3transfer/py3/tests/functional/test_copy.py
+++ b/contrib/python/s3transfer/py3/tests/functional/test_copy.py
@@ -629,7 +629,9 @@ class TestMultipartCopy(BaseCopyTest):
self.add_head_object_response(expected_params=head_params)
self._add_params_to_expected_params(
- add_copy_kwargs, ['create_mpu', 'copy'], self.extra_args
+ add_copy_kwargs,
+ ['create_mpu', 'copy', 'complete_mpu'],
+ self.extra_args,
)
self.add_successful_copy_responses(**add_copy_kwargs)
diff --git a/contrib/python/s3transfer/py3/tests/functional/test_upload.py b/contrib/python/s3transfer/py3/tests/functional/test_upload.py
index 964e8eaaa69..92fe8d803d7 100644
--- a/contrib/python/s3transfer/py3/tests/functional/test_upload.py
+++ b/contrib/python/s3transfer/py3/tests/functional/test_upload.py
@@ -599,3 +599,28 @@ class TestMultipartUpload(BaseUploadTest):
)
future.result()
self.assert_expected_client_calls_were_correct()
+
+ def test_multipart_upload_with_ssec_args(self):
+ params = {
+ 'RequestPayer': 'requester',
+ 'SSECustomerKey': 'key',
+ 'SSECustomerAlgorithm': 'AES256',
+ 'SSECustomerKeyMD5': 'key-hash',
+ }
+ self.extra_args.update(params)
+
+ self.add_create_multipart_response_with_default_expected_params(
+ extra_expected_params=params
+ )
+
+ self.add_upload_part_responses_with_default_expected_params(
+ extra_expected_params=params
+ )
+ self.add_complete_multipart_response_with_default_expected_params(
+ extra_expected_params=params
+ )
+ future = self.manager.upload(
+ self.filename, self.bucket, self.key, self.extra_args
+ )
+ future.result()
+ self.assert_expected_client_calls_were_correct()
diff --git a/contrib/python/s3transfer/py3/ya.make b/contrib/python/s3transfer/py3/ya.make
index 5c5e2faa373..78a5e0769ac 100644
--- a/contrib/python/s3transfer/py3/ya.make
+++ b/contrib/python/s3transfer/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(0.6.2)
+VERSION(0.7.0)
LICENSE(Apache-2.0)