diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-08-22 05:07:35 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-08-22 05:07:35 +0200 |
commit | aa7a34706d3daf975fab2b71e3d19b855b11d187 (patch) | |
tree | 11a63188103c95aa932e909dd6478523819a823b /app-admin | |
parent | dev-python/boto3: Bump to 1.28.31 (diff) | |
download | gentoo-aa7a34706d3daf975fab2b71e3d19b855b11d187.tar.gz gentoo-aa7a34706d3daf975fab2b71e3d19b855b11d187.tar.bz2 gentoo-aa7a34706d3daf975fab2b71e3d19b855b11d187.zip |
app-admin/awscli: Bump to 1.29.31
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.29.31.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index 811f9315d8b6..84bf20406fe8 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -6,3 +6,4 @@ DIST aws-cli-1.29.27.gh.tar.gz 2509252 BLAKE2B 693184fd4c1886ecba870df6c9e2cf843 DIST aws-cli-1.29.28.gh.tar.gz 2509294 BLAKE2B c3fbeebaead71029ce882cf7a88d72146127df063d48d02ba134c3dfe5e446d8d5ba8034caaa43615cf4d28f713a45ddc489f3be4ce60cf06c364b48e23f594b SHA512 bf0f73137025110c3de2cd88ac9b03aef4ad245795ca37a0b8fdc93de900686c6eddd63f20d160f211fd0fe9b7de106a82a537162337338cd5285fac47003c08 DIST aws-cli-1.29.29.gh.tar.gz 2509694 BLAKE2B fb303b103ac2f6f74ac557b136c23d40f3da00b26c0bc03ed07e31c04fad5c868c7ac2141072fd8a8f7ea80ccdfff5e55fb89dd25c67b91f518aed6441650761 SHA512 606a9c4c510e51ba1ad39722abd4c7666f2fc184470f7ef17b61863135cb43baf6117eb777ac1e1d143c71507ef7f2bea9a6192675d93e282eb15d13e2d8c6cc DIST aws-cli-1.29.30.gh.tar.gz 2509672 BLAKE2B 4c81e02da68497cbf91ca407389707e21244147ec740344394b5a8dac9e3cf95d3f48487069371bea607ea823a6c7c169c9d6ed77dc5ba92cd3545e5b9510c69 SHA512 69120b9bf222257eab809cb345a3aa0515d6f9b06b64b1233fc82bd3d26341b549e43dc301e0c70876ccac2ebc7a19f68f4f7c3872ea63add1e797e49fd156d9 +DIST aws-cli-1.29.31.gh.tar.gz 2510291 BLAKE2B 9b28bd5b22cbcde62f1375920f97a53a152a89d67b68788cbcecc3534932e037f94f6427324431c6f063a5cbf2fd4903a43a6129cb052198baefefed38b6e763 SHA512 3f56edd418556e4575f44ef08d631e1b36a4d1f77e6d189ed5d9e46acde0c02e561d22df9d7063efc3011561816b99ad8faaf12855d7eaef76b16f47d77f8c65 diff --git a/app-admin/awscli/awscli-1.29.31.ebuild b/app-admin/awscli/awscli-1.29.31.ebuild new file mode 100644 index 000000000000..62c19f3a63fb --- /dev/null +++ b/app-admin/awscli/awscli-1.29.31.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 +} |