commit: f21bb79dfb7d3324dd13bbeaeb1f908744495817
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 25 05:15:17 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 06:02:02 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21bb79d
app-admin/awscli: Bump to 1.27.79
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
app-admin/awscli/Manifest | 1 +
app-admin/awscli/awscli-1.27.79.ebuild | 80 ++++++++++++++++++++++++++++++++++
2 files changed, 81 insertions(+)
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index fb8e537d10a1..a1c6951d1c30 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -4,3 +4,4 @@ DIST aws-cli-1.27.75.gh.tar.gz 2368634 BLAKE2B
b1a150c77b5f7ff98b33bff0225d889d8
DIST aws-cli-1.27.76.gh.tar.gz 2368848 BLAKE2B
617291112ef43719d42cc3bde9bdf2aa267296f047c2f488070d60adcf0ea64e72838d13af694bf053ad00899936d9ad6975a78bc6f24ccd35b7b632b3e8efcf
SHA512
91410d33c002626964928dabc5bf2d2957030559756c3d85a4a2c6d7963b34cc6560e9048ebd856aeb805281d37ca49e3a2ee3b0838d1333f390cf34f93b3611
DIST aws-cli-1.27.77.gh.tar.gz 2369737 BLAKE2B
31f4143209ec942f515744e9db760e9f8a4c33b69821d1fa8d4e9d3cffb91714f077c34e5e9fe63d30770eab555833a9938e7b5eadbab0d24d6a8e9d77a08163
SHA512
6ef67c79307482cedcc06da8c31214364a988ea20ef7cb5fa73649828b078bdbe271721a685b34c2c5edb7e8314c948d7dc5aad56cd4bf56101638beb42ee5f3
DIST aws-cli-1.27.78.gh.tar.gz 2370774 BLAKE2B
08834e3d44e8fbc8fa70e6df898c91f88a446661443d9d0ff7dedc9efc38faa2e151d379f99cc3c2882052486773d2f27858b59d6e93f0c0c26574244c88d475
SHA512
e2c995ecb98df92162cae36df4204a3ffc41cb50adcb38fd07a6065dc7c8975202306df591241d89139261cbddce52b69b2b0a4c9934c4158dee22b22c9321cd
+DIST aws-cli-1.27.79.gh.tar.gz 2376690 BLAKE2B
8e55d3607b805ebc5673c682731483f0fd6eb77a6cc972d58ce3219c33f9f2054529df6ab46fc85b39849871580cea03c4d7f490c4386cd5ce9d222ecb3c8eda
SHA512
fd8b880b6358c50ed189fac538d91ef88d762b8c382da1b57bb086a316f7ee96fa33206a53f3eae2df98df175929c819b855c7ff5b7e5f84c73ecff88f297c79
diff --git a/app-admin/awscli/awscli-1.27.79.ebuild
b/app-admin/awscli/awscli-1.27.79.ebuild
new file mode 100644
index 000000000000..62c19f3a63fb
--- /dev/null
+++ b/app-admin/awscli/awscli-1.27.79.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
+}