app-admin/awscli: Bump to 1.25.96

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-10-21 06:00:36 +02:00
parent 730be20e3f
commit d79b090104
2 changed files with 73 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ DIST aws-cli-1.25.91.gh.tar.gz 2287481 BLAKE2B 6cc39905deee332187249124bedc14ef7
DIST aws-cli-1.25.92.gh.tar.gz 2287842 BLAKE2B 5cbadaeed098efa7a7ac911e76d1259e2fd7310b4c87f6f37fb4c3aa731d4f4fdacf6a3ea4345a295e8f6eba2985698ed36287f84303ba22e1466afa7acdcd06 SHA512 9c646c7f081ffe26571d36953e1c98a80a863ae4b0b3cf941aaa4958a96967481aeb634dfb84dae2bf9d3e20ad528b093634d2bb011ec85f3d583de84c72ebb8
DIST aws-cli-1.25.93.gh.tar.gz 2288018 BLAKE2B ef0a0c679f5e4e698b21f84f2f0aa594889205c0f468cd3ac665040987a843ad9888687e3127f7755d90c715680fcba39430b094e35c8d017837cd9e8b1d51f0 SHA512 6052e677e04b84eb90a853bb6a85506f1b0b1270e64e2f93d666c66deda1824392cbfa1746a55dfb4f2a64554decb54a94e91b60564291621ff939c894f39ca3
DIST aws-cli-1.25.94.gh.tar.gz 2288438 BLAKE2B c30b798d1e489b04d0d63630fee9a782262be83cb30df6e66793cbba7951135a814734d90cb6117f87382ec520204f7e553a16bee87c1acd448d22581e0cc14d SHA512 9407751a543c4d15d80d8986508abe2b4c1eb2bc375119f17e60928342f3af442359982f6600b551c318fda0c80629ea02511ad70cdb096adf8e91891ceadc03
DIST aws-cli-1.25.96.gh.tar.gz 2289725 BLAKE2B 8f1a562a9b144f32e0e72eb8a34cf02ce96f740bded6ebe2e14e16da69d614d06f5285614ff2a1c428330290cc2e6c9cab80639dd4b8da7219d16c112d26cb91 SHA512 c45e0ac254a4f3f7d84fdb082a7932f98921b660b465892b759302937f295ce4eeb7750c492be62c36f96cc6c21d5699c44093c5cd00a32a98659fc707b570a7

View File

@@ -0,0 +1,72 @@
# 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_{8..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-1)
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
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() {
# 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
}