commit: 2d2f3369496c81952f3aad725e5c690e05c4edf1 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jul 8 04:48:21 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Jul 8 06:05:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d2f3369
app-admin/awscli: Bump to 1.29.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> app-admin/awscli/Manifest | 1 + app-admin/awscli/awscli-1.29.1.ebuild | 80 +++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index ceac23c5c83e..f038713d0956 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -7,3 +7,4 @@ DIST aws-cli-1.27.165.gh.tar.gz 2445911 BLAKE2B 72496a0b5695c78631349b7b6efb4aee DIST aws-cli-1.28.0.gh.tar.gz 2445988 BLAKE2B 5c56f908d72cdc10c3e256dd1cc279a202d302cfee0ce860dbefec33ec78aea7afcae37aa699bab6a8644503c9ff0648d0efd60a168f180847f4392e3440658f SHA512 cc3239b7609de0dfa0bb15fea044a9f51151e6c1873c07dc1f0893b0418721eef9b28d1757bc59f7d9e603b865eec406fbe3865e0f31de2f58142ca6768bd1a3 DIST aws-cli-1.28.1.gh.tar.gz 2446244 BLAKE2B b3642736467a629e810bab4998f797e12845427344689ca8bbe8e2e5e362debc71d2496dfb9ad9e0de1d0e018744e9e13268b6f203040475ef97b77fb99fbf1b SHA512 ab668d09979e5bb1ddec9862227d08c607ddfcac417fe298ac214caf492bcee678291132117925e0e229d10bf4b820c2acc3c335e5b0b9474151ad3233117668 DIST aws-cli-1.29.0.gh.tar.gz 2449423 BLAKE2B 52948b35f391266c38a197d4fa20926c428def190a5821a64b33fe9939b5a30a252fd546a3f1f54056901ed9fe75e7d030d65ca40508658581a4246ad6ec1635 SHA512 5c1b31d2b5c9721b2b27ef21fbd58c74c70fce35122e1de4b1483b8bd6766f2b2b27c288aa1a3d91f1d37decdaa937823b4149f9b1d49acd4404477ee8f9dfd6 +DIST aws-cli-1.29.1.gh.tar.gz 2449948 BLAKE2B 5765a91501be6d789610be4d46373c909f4335159fd0063acc95e5082825684f0e1a83db3ef228ee67342844e81c2ccd2de2651763304a14c0166775839d8f08 SHA512 00a500497ffc0ff22a0f83878aef3a00b6873ad949db2fe9d6a339a7aa8e8465f5aaf996a422a9810731930b0548e1fe771d964001d10657b69398fd0fe9aef1 diff --git a/app-admin/awscli/awscli-1.29.1.ebuild b/app-admin/awscli/awscli-1.29.1.ebuild new file mode 100644 index 000000000000..62c19f3a63fb --- /dev/null +++ b/app-admin/awscli/awscli-1.29.1.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 +}