Files
packages/lang/python/python-boto3/test.sh
Alexandru Ardelean bae2e54d90 python-boto3: update to 1.42.86
Update package to 1.42.86.

Key changes since 1.28.7:

1.33.0: boto3 and botocore now share the same version number.

1.36.0 (S3 checksum overhaul): CRC32 is now calculated by default for
all supported S3 operations; Content-MD5 header no longer auto-populated;
response checksum validation added; CRC64NVME and SHA512 algorithms
supported via optional awscrt.

1.38.0 (Account-based endpoints): DynamoDB and future services now use
https://<account-id>.ddb.<region>.amazonaws.com endpoints when account
ID is available. Python 3.8 end of support.

1.40.0 (STS endpoint default): Changed from legacy to regional; override
via sts_regional_endpoints config or AWS_STS_REGIONAL_ENDPOINTS env var.

1.41.0 (New credential provider): login credential provider added,
allowing use of AWS Management Console credentials.

Hundreds of API additions across Bedrock, ECS, EKS, Lambda, SageMaker,
and many more services.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-04-12 10:14:26 +03:00

24 lines
603 B
Bash
Executable File

#!/bin/sh
[ "$1" = python3-boto3 ] || exit 0
python3 - << 'EOF'
import boto3
from botocore.stub import Stubber
# Test client creation (no real AWS credentials needed)
client = boto3.client("s3", region_name="us-east-1")
assert client is not None
# Test with stubber (no network)
stubber = Stubber(client)
stubber.add_response(
"list_buckets",
{"Buckets": [{"Name": "my-bucket", "CreationDate": __import__("datetime").datetime.now()}]},
)
with stubber:
response = client.list_buckets()
assert len(response["Buckets"]) == 1
assert response["Buckets"][0]["Name"] == "my-bucket"
EOF