diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-11-15 06:58:58 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-11-15 08:26:51 +0100 |
commit | 49c98bd991a5a49cdcfac6680659e2e647fb3d85 (patch) | |
tree | fcfab5d2f2c3783b821b137e0754b00ef40a8ae4 /app-admin | |
parent | dev-python/boto3: Bump to 1.26.9 (diff) | |
download | gentoo-49c98bd991a5a49cdcfac6680659e2e647fb3d85.tar.gz gentoo-49c98bd991a5a49cdcfac6680659e2e647fb3d85.tar.bz2 gentoo-49c98bd991a5a49cdcfac6680659e2e647fb3d85.zip |
app-admin/awscli: Bump to 1.27.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/awscli/Manifest | 1 | ||||
-rw-r--r-- | app-admin/awscli/awscli-1.27.9.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index 4ad72ff2e34b..4a82bd398e4b 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -14,3 +14,4 @@ DIST aws-cli-1.27.4.gh.tar.gz 2296705 BLAKE2B 604306821f91decf0fb6f88d1115000164 DIST aws-cli-1.27.5.gh.tar.gz 2298711 BLAKE2B 190b2483cf09d4eff2848cc0933a957ae0f6e8fc88a24bc5a0bc637d6c659427fa4145a5509a6fea731fc0f5e09979d8714bdbb0627c0257db4ceb6bd5e09eb9 SHA512 b147660b72604ed29bff27d76ead2018c3c924339472a6499b4553cbb439d239bef11c6ab24a34303b01407da94e79fb5e3729576492340cf097399a637713c0 DIST aws-cli-1.27.7.gh.tar.gz 2299694 BLAKE2B 9a68f642120506d1b7f002a261961f40c0b91c43a10e2522f9162ad53ad70a0b8054d9c2accc7d6267c1ff3460970b05c90d0e21a7590a084e82df553a478a9b SHA512 067d7d0491ff9f83be84e709570a9e6ed8e6cdbe47698c0924c2c776fa6b682cf130e7e0b0569e68b94a92e5fee84c60cdd02ad570e262dca81cf644a168e6ac DIST aws-cli-1.27.8.gh.tar.gz 2301766 BLAKE2B 1873d92b8d2f6d3f29a65b4177927a1a14034da71dbc95ff6abf3f49df6cf3ee192412eeea15be14c8cf9fca0a5603f2c76b80b280f4feb95e661055abcd8b60 SHA512 e53828cac1b3e10e2ddd45312d71cdb748216dbc37c3e9833e7a1320b236c3bef6a13204a38b946d9182430f169fca1ddc77d3d06c1c2c6e05978dc61f675168 +DIST aws-cli-1.27.9.gh.tar.gz 2302163 BLAKE2B bf4a4ec1320cb4245c0a90c983e697eb2b255418849d854661e0eef0e8fb929edd8d073a21dba4ef322928c1c3135cecaa33f6cabd7dba177c328718e1a86fbb SHA512 281d9b54f280c4458a3d712361677d9e38476001de3beff38d189bbd490b40378adfe1425a4e94884dc7c06bca81cda4833b2e2c8419b219e474bbdb42b8a7d7 diff --git a/app-admin/awscli/awscli-1.27.9.ebuild b/app-admin/awscli/awscli-1.27.9.ebuild new file mode 100644 index 000000000000..9bcb01ac11e2 --- /dev/null +++ b/app-admin/awscli/awscli-1.27.9.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2022 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 ~arm64 ~riscv ~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 +} |