summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-19 04:39:14 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-19 05:44:46 +0200
commitdb03fe2858492d65d1997d3e261784d5c793d092 (patch)
treed169d1cfd384fe5849a29c1e3c6964a0493dff22 /app-admin
parentdev-python/boto3: Bump to 1.26.136 (diff)
downloadgentoo-db03fe2858492d65d1997d3e261784d5c793d092.tar.gz
gentoo-db03fe2858492d65d1997d3e261784d5c793d092.tar.bz2
gentoo-db03fe2858492d65d1997d3e261784d5c793d092.zip
app-admin/awscli: Bump to 1.27.136
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/awscli/Manifest1
-rw-r--r--app-admin/awscli/awscli-1.27.136.ebuild80
2 files changed, 81 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 648d6cee52ce..e0309d8fa600 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -8,3 +8,4 @@ DIST aws-cli-1.27.132.gh.tar.gz 2420336 BLAKE2B 585b35e4e07933e7fcb1b1c93924bbf2
DIST aws-cli-1.27.133.gh.tar.gz 2421348 BLAKE2B 0511291bf018bb62616f11231327b47abd153533c8ef0cdd5414d1c6f7f96ca529e3bbc3e5bb73cdb59d010502ebd122c3e83dc63bb7b4d84a6f7b011d3a03bc SHA512 a308d805091ecc054e86bd83ca5525d5332f5f6efd2654ce1242e70c7459de75d4175689381cfcb530cb7b2b43d852fb827d54ef2845cb95206ef2379f8e3dc6
DIST aws-cli-1.27.134.gh.tar.gz 2421575 BLAKE2B 7fee144f529720aa2bc2799bb617df5faa6262df3568c3c4021bcf5d6d2e3786420d6285b2f81fbb9ab9facac65c860a39ab09ff995ecb5c9bb7701b17c7e57f SHA512 f3aa56d46cc74050495320e7743680993e9530fd19ca0d6563b01c6379151e383c3a441f47f3fd3038837a4ecba54c2dc48f764545726d72304fb4e6a3208b96
DIST aws-cli-1.27.135.gh.tar.gz 2421852 BLAKE2B f6c684a68e9bbc37c0e5722926713e74f9d259b758d3a0e994280eb2f2fd9ea4dc78915ce88628db4df1121f819c96c1f142b2b1cbf2c0f706b9803a97741725 SHA512 633e431fcd93c6768854eb36b694cfc32499bee58e71830890eed3f06947fb00e075bfc0fa2fe0ad77bb4bdbd6018a45ed6fb810176fc07705110f8a72defb3b
+DIST aws-cli-1.27.136.gh.tar.gz 2422696 BLAKE2B 8df6331a45752c5176abb03d1b12888a5f6b062785ca1cb0e1f6bd523326bb454b90638a01406ac40fb32c5154e2943a64ef08b6b3106f76fc574369e3570fe6 SHA512 4efa236b62aca24cb04323236e7a895f8d9fcdc659348dc066ab4b17b6818f790f54de1cb364ab949bb1efb811f9cb065a6b095e1d4ef481d745fd79d81abac9
diff --git a/app-admin/awscli/awscli-1.27.136.ebuild b/app-admin/awscli/awscli-1.27.136.ebuild
new file mode 100644
index 000000000000..62c19f3a63fb
--- /dev/null
+++ b/app-admin/awscli/awscli-1.27.136.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit bash-completion-r1 distutils-r1 multiprocessing
+
+MY_P=aws-cli-${PV}
+DESCRIPTION="Universal Command Line Environment for AWS"
+HOMEPAGE="
+ https://github.com/aws/aws-cli/
+ https://pypi.org/project/awscli/
+"
+SRC_URI="
+ https://github.com/aws/aws-cli/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+# botocore is x.(y+2).z
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(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.6.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ !app-admin/awscli-bin
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-forked[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests 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
+ # strip overzealous upper bounds on requirements
+ sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # TODO
+ tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
+ tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
+ tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
+ tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
+ )
+
+ # integration tests require AWS credentials and Internet access
+ epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
+}
+
+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
+}