diff --git a/lang/python/python-awscli/Makefile b/lang/python/python-awscli/Makefile index e255b11696..356938c5cf 100644 --- a/lang/python/python-awscli/Makefile +++ b/lang/python/python-awscli/Makefile @@ -1,11 +1,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-awscli -PKG_VERSION:=1.29.7 +PKG_VERSION:=1.44.76 PKG_RELEASE:=1 PYPI_NAME:=awscli -PKG_HASH:=b3a7076cb317a21410a2d41734ba338add80f0480804cf9d68cbc52b1d39612a +PKG_HASH:=33029e2928306c4bdec425a5fac54aadc343dee6c8e7152948c33d7f21d7099a PKG_MAINTAINER:=Daniel Danzberger PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python-awscli/test.sh b/lang/python/python-awscli/test.sh new file mode 100755 index 0000000000..3e0d324cba --- /dev/null +++ b/lang/python/python-awscli/test.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +[ "$1" = python3-awscli ] || exit 0 + +python3 - << 'EOF' +from awscli.clidriver import create_clidriver + +# Verify CLI driver can be created +driver = create_clidriver() +assert driver is not None + +# Verify help text is available for s3 command +import awscli.topics +assert hasattr(awscli.topics, "TOPIC_TAGS") +EOF + +# Verify the aws binary runs --version +aws --version 2>&1 | grep -q "aws-cli" || { + echo "ERROR: 'aws --version' did not produce expected output" + exit 1 +}