diff --git a/lang/python/python-boto3/Makefile b/lang/python/python-boto3/Makefile index ebc38ecd76..88fdf19748 100644 --- a/lang/python/python-boto3/Makefile +++ b/lang/python/python-boto3/Makefile @@ -1,11 +1,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-boto3 -PKG_VERSION:=1.28.7 +PKG_VERSION:=1.42.86 PKG_RELEASE:=1 PYPI_NAME:=boto3 -PKG_HASH:=ef6a465d3b25b89bcd00ff69675b33917166145e544735dcb9978091f5b0b752 +PKG_HASH:=c87d2a750b1a8cad0384d1a83d3bad6aedf924ae9a14aaba814bcb3297b39c01 PKG_MAINTAINER:=Daniel Danzberger PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python-boto3/test.sh b/lang/python/python-boto3/test.sh new file mode 100755 index 0000000000..4ba4dad665 --- /dev/null +++ b/lang/python/python-boto3/test.sh @@ -0,0 +1,23 @@ +#!/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