mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
python-s3transfer: update to 0.16.0
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>
This commit is contained in:
committed by
Alexandru Ardelean
parent
a91080e035
commit
9615f65675
@@ -1,11 +1,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-s3transfer
|
||||
PKG_VERSION:=0.6.1
|
||||
PKG_VERSION:=0.16.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=s3transfer
|
||||
PKG_HASH:=640bb492711f4c0c0905e1f62b6aaeb771881935ad27884852411f8e9cacbca9
|
||||
PKG_HASH:=8e990f13268025792229cd52fa10cb7163744bf56e719e0b9cb925ab79abf920
|
||||
|
||||
PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
|
||||
23
lang/python/python-s3transfer/test.sh
Executable file
23
lang/python/python-s3transfer/test.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user