commit:     e6ff1246c9e31db99ca28c849ee3eca4931fe596
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 20 04:06:54 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 20 04:49:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6ff1246

app-admin/awscli: Bump to 1.27.53

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-admin/awscli/Manifest              |  1 +
 app-admin/awscli/awscli-1.27.53.ebuild | 80 ++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 2a69cb49c7e1..83d539f6c5bc 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -1,3 +1,4 @@
 DIST aws-cli-1.27.45.gh.tar.gz 2344942 BLAKE2B 
02171244d074008721a5da4b9e640b0da3b77ed90ad8acda300b7256ef62eb663f0bee78a52f025e3f6315306602ba3cb8848e89dbfb6abec6342a0ae04b1009
 SHA512 
d3daa556c6b93c312dae8ff29941d938cfed7f27e62408f06c32abbeb7324d04a3b8997fd1db9feb78ef1ef1eb98ea2fa456fe179c037127558ecf786e5b69c5
 DIST aws-cli-1.27.50.gh.tar.gz 2347235 BLAKE2B 
cacfe2c8d4fce7de6452a02fa8bcbcde58dbf010328a161e5eecc7305b225264ae68d3e20c6107cfa3b817e2030ffb20dc09a938f8bff59036fab5969e3e6da0
 SHA512 
af95ad60f2537c12c1353ab0cee045b55834b92b51d0b2fb1bf48991d34f4aa3b61ab20ca438ecba5d8019009065f7993bab64b7e7e0edf89765351c3f4fa168
 DIST aws-cli-1.27.52.gh.tar.gz 2347819 BLAKE2B 
1d6c26a9ede3c9cff28a66f7582a84a57dbacfaefce71b8465100abc4822a0fa1e01bf53068895901d5784fcbeb57f74fef9e872d3e145f56582edae920564ca
 SHA512 
00b08ed90e2d67db3e091f49296f4d83b04c5a504373a613f5bf411fb17b5a1d2b7fc8612a8ff748c87dc3debe2b985c6ac2c3226683651a31d4f35d27b7c826
+DIST aws-cli-1.27.53.gh.tar.gz 2349368 BLAKE2B 
ddae75809b9eb2e8ff5f80cdb4d5730254866dc025c178ebcf76971e53fd5d5fecbf30e20717f4a126cb19624acd961e8c005a0ced118989b062666c8ab2d346
 SHA512 
8eddc6f801e7e7f8600f6cdde3db28e670fdc83e6266840b507f88e0b176d790450d18f84c921af15fa12408f2f2eb16fc2498668601c3164ef1f503275303a8

diff --git a/app-admin/awscli/awscli-1.27.53.ebuild 
b/app-admin/awscli/awscli-1.27.53.ebuild
new file mode 100644
index 000000000000..62c19f3a63fb
--- /dev/null
+++ b/app-admin/awscli/awscli-1.27.53.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
+}

Reply via email to