mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
Update package to 0.16.0. Changes since 0.6.1: 0.7.0: SSE-C arguments now passed to CompleteMultipartUpload for upload operations. 0.8.0 (CRT improvements): Wider CRT upload functionality; CRC32 auto-configured for CRT uploads; file-like object support for seekable and non-seekable streams; dynamic target throughput via AWS CRT system detection. 0.9.0: Python 3.7 dropped. 0.10.0: S3 Express support for CRT; Multi-Region Access Point support for CRT (0.10.4). 0.11.0 (CRC32 default): Now uses CRC32 by default and supports user-provided full-object checksums. 0.12.0: Python 3.8 dropped. 0.13.0: ETag validation during multipart downloads. 0.15.0: ETag validation during multipart copies. 0.16.0: TransferConfig options (multipart_threshold, multipart_chunksize, max_request_concurrency) now supported in CRTTransferManager. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
24 lines
627 B
Bash
Executable File
24 lines
627 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "$1" = python3-s3transfer ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import botocore.session
|
|
from botocore.stub import Stubber
|
|
from s3transfer.manager import TransferManager, TransferConfig
|
|
|
|
session = botocore.session.get_session()
|
|
client = session.create_client("s3", region_name="us-east-1")
|
|
|
|
# Verify TransferConfig defaults
|
|
config = TransferConfig()
|
|
assert config.multipart_threshold > 0
|
|
assert config.max_request_concurrency > 0
|
|
assert config.max_submission_concurrency > 0
|
|
|
|
# Verify manager can be instantiated
|
|
manager = TransferManager(client, config)
|
|
assert manager is not None
|
|
manager.__exit__(None, None, None)
|
|
EOF
|