summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-18 22:38:41 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-18 23:28:30 +0100
commit345c3a02e939c432c85e2bb936409ab7b169b11e (patch)
treeb08b80f767d435a48ae88616929cab49091ff309 /app-admin/awscli
parentdev-python/boto3: Bump to 1.20.9 (diff)
downloadgentoo-345c3a02e939c432c85e2bb936409ab7b169b11e.tar.gz
gentoo-345c3a02e939c432c85e2bb936409ab7b169b11e.tar.bz2
gentoo-345c3a02e939c432c85e2bb936409ab7b169b11e.zip
app-admin/awscli: Bump to 1.22.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin/awscli')
-rw-r--r--app-admin/awscli/Manifest1
-rw-r--r--app-admin/awscli/awscli-1.22.9.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 1eea575b5627..49b25c69465c 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -5,3 +5,4 @@ DIST awscli-1.22.5.tar.gz 2111679 BLAKE2B 970e472e8de43664d060023fdab9f54ce848c5
DIST awscli-1.22.6.tar.gz 2112080 BLAKE2B 5fffb3d5d0cbbcea813114bbfc89df64f58e83135c88ab914ac4327185310075e7e19e34a51e6cf85f9d2e804fb75cc69e2f7967ea69c67ff1987e054b5756c1 SHA512 3bf7cf59f947708c0d8e6ec992498d0e58a1a2ccb6a330bced0e2eece9989ef9097e08034354a6c265da08346e37611862f3dbb96d35d9787d3013f6220b7de2
DIST awscli-1.22.7.tar.gz 2112524 BLAKE2B f3aeaa85d8be945ee2c64e45b1cd74eaa89cd035c4650f2a35144c113c8b073a7856e680fd1c67ee54f382ab4ad593cbe4752b53b2637b3c587ecdfa22b6819e SHA512 07c96caddb099e507b0e9b75dac79249a8b26a1ca43a3be842079dfe8af399647dec5c330e6b75059955c132b0c5e179cac2edb2b814c51b47a7777d7f7d5373
DIST awscli-1.22.8.tar.gz 2113382 BLAKE2B 7fbaf420bb3c2c0210fde7be47eaa8b6da42129da255c50d244ae70b3c325266fae7891d389281389365bb8ca9ad9f133dea8ac9e3bdce2705336b4d79a664a8 SHA512 b8065488fa33bbdae60b6f3aa7f2483e8a91d59368b1886221822f89875ff17f6611cd1a2b9c709db78881acee0bcdefa1f6e44909c06e7bfddf9d46d54c675b
+DIST awscli-1.22.9.tar.gz 2114297 BLAKE2B e3d9fcc060f2fce1770d069d3d2bdca6c6cf11eab28e7daf647fc9d74b31d63fb76a8c26717d5cbc8fdced171b6a89f59e2ab4e33b057e2a4f8dafa2dfd024f6 SHA512 690b0e91a64bf8189ac712bafb94d5b51639da3129da674c6d4cf55c8e986506e57a597690b3708538b94bdf51449cdf1cdcaf8096d8d712008ed1c8fa358c5a
diff --git a/app-admin/awscli/awscli-1.22.9.ebuild b/app-admin/awscli/awscli-1.22.9.ebuild
new file mode 100644
index 000000000000..d4b09dbaa2ec
--- /dev/null
+++ b/app-admin/awscli/awscli-1.22.9.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit bash-completion-r1 distutils-r1
+
+DESCRIPTION="Universal Command Line Environment for AWS"
+HOMEPAGE="https://pypi.org/project/awscli/"
+#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/aws-cli-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+# botocore is x.(y+1).z
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
+RDEPEND="
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
+ dev-python/colorama[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/rsa[${PYTHON_USEDEP}]
+ >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests --install pytest
+
+src_prepare() {
+ # do not rely on bundled deps in botocore (sic!)
+ find -name '*.py' -exec sed -i \
+ -e 's:from botocore[.]vendored import:import:' \
+ -e 's:from botocore[.]vendored[.]:from :' \
+ {} + || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ distutils_install_for_testing
+ # integration tests require AWS credentials and Internet access
+ epytest tests/{functional,unit}
+}
+
+python_install_all() {
+ newbashcomp bin/aws_bash_completer aws
+
+ insinto /usr/share/zsh/site-functions
+ newins bin/aws_zsh_completer.sh _aws
+
+ distutils-r1_python_install_all
+
+ rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
+}