diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-04-06 03:49:10 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-04-06 04:21:11 +0200 |
commit | bfe0fd6620cf91118a24a96089c02cc12b9d3877 (patch) | |
tree | 424c36bb38a347c2c1388c558d61499f23f227d6 /app-admin | |
parent | dev-python/boto3: Bump to 1.26.107 (diff) | |
download | gentoo-bfe0fd6620cf91118a24a96089c02cc12b9d3877.tar.gz gentoo-bfe0fd6620cf91118a24a96089c02cc12b9d3877.tar.bz2 gentoo-bfe0fd6620cf91118a24a96089c02cc12b9d3877.zip |
app-admin/awscli: Bump to 1.27.107
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.107.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index 2c56c4acacca..5b5bc22e1cee 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -1,3 +1,4 @@ DIST aws-cli-1.27.104.gh.tar.gz 2392876 BLAKE2B 860f0d8ddf4c283d7b4e98ded1c9ca66b23e6a63107be0810b1ec3a513a05196aaa3d613a0597af84f4637621b05ab30e89f221bd47478342693611be5ee306d SHA512 57e26dcca866ab7c30abf0c2e15ea7ce617c0abe123a983157ab188c6c7c8d217d8515f1c9e329ae1fd53561e6aa6711e2ee50d9258fe3aadeca7a9b5de92ac4 DIST aws-cli-1.27.106.gh.tar.gz 2394080 BLAKE2B a83e50310ba5db667fb999f2f8dc4a32159b3934c7e305d48f09075f8210a298acce56f63827ac22a3686fd4c948fcde3382da005b9989287a09724734718c83 SHA512 8659a92851f0bffc3d92430aa955a319c689783ff907c51ed0b42bc0edd5301293c390269504cfee5833f69c69c372dae3995964460d41adf755966124b22579 +DIST aws-cli-1.27.107.gh.tar.gz 2394636 BLAKE2B f64dec24fbebaf22aa734c54cf54084b036ea627f1c004705f3a630a6efef59b5c826c5ffd4372dffebf86c4cfa507ed465f965a3a200e2a997cde5f166e0b6e SHA512 3e32ab758eba1d7b4bc8b4e5bc6c71bbe72a69d6b50dc5b51c6f8a0eb44cc53a4f91680ca84003f7692c1b1bdc727de41772df03940e0f19bddbc7b40682fd4c DIST aws-cli-1.27.99.gh.tar.gz 2388286 BLAKE2B f9be204722470fdbc5b4a1f7453370033c78800dac6d4ca63480705988e6bd02899f0646c034f39a3e87a2988f79d9d23989ba9f4036e931102ca4c0e46989b1 SHA512 a07ac30eab8cd8f19f35bb7d203b6ef150c585a61df63dfa54d469591e57766f3cbdab3053a155837da82d1c9f702302f4821558c7b7cb9dc985fec7a58dacf1 diff --git a/app-admin/awscli/awscli-1.27.107.ebuild b/app-admin/awscli/awscli-1.27.107.ebuild new file mode 100644 index 000000000000..62c19f3a63fb --- /dev/null +++ b/app-admin/awscli/awscli-1.27.107.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 +} |