diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-25 07:18:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-25 09:12:29 +0200 |
commit | 9cdb9c434d561f32bded42db63c2331389f05ffe (patch) | |
tree | 92781192e193f7d2668831e17bfae3778ea95c94 | |
parent | dev-python/boto3: Bump to 1.23.7 (diff) | |
download | gentoo-9cdb9c434d561f32bded42db63c2331389f05ffe.tar.gz gentoo-9cdb9c434d561f32bded42db63c2331389f05ffe.tar.bz2 gentoo-9cdb9c434d561f32bded42db63c2331389f05ffe.zip |
app-admin/awscli: Bump to 1.24.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | app-admin/awscli/Manifest | 1 | ||||
-rw-r--r-- | app-admin/awscli/awscli-1.24.7.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index d20b7380e598..1ada30dc28dd 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -6,3 +6,4 @@ DIST aws-cli-1.24.3.gh.tar.gz 2215539 BLAKE2B b571cac95eed696dd3a9242d8291d42ab9 DIST aws-cli-1.24.4.gh.tar.gz 2215845 BLAKE2B 9b95b53feba4d61e44276c7ee1587a45f91d4171ba102327bb23b308b801a7322873a8e48e420c66a72123fa6ed3e49f54d8d63eaac638d1bd0f80d27a9f1013 SHA512 345e6fc02c04e6a1c2635a29e4c2a00a2ba14ccf2f1de6167ac8113a05cee01b33add850b4bf95ce9ca22449101c0b49993841097d4d3bc7836ca9fd9f80748d DIST aws-cli-1.24.5.gh.tar.gz 2215786 BLAKE2B db9077cfe3cf561109dea9ce1395f9d5bbe25b9dd28675e20d56c1fee3ad17e4befdce61cb81f217bb32d85b326ca4069f97482b9670f9653a850fd90fd135f7 SHA512 1cb4fcf37ccc6e7c3dfb211a9bc6687172f4052c6dae307e1a8451947078794973a3fd8382824ca2be650ee5b898b1f8d9bc27e2b403a2c51fea17b319bd366d DIST aws-cli-1.24.6.gh.tar.gz 2216124 BLAKE2B 584c1b5f6bc76f565346734b3d1b5a877f0f91085f959712c6310a2609ab3089191a7f89755763422b55a6b0e6e1549d818cdb7ed2bbf1c0e7e4e4d60279e515 SHA512 dcfff4a5308d33dc91fd0569b0045842e59776d496e6a39d734c0ed082e127470e672059c1443785b1d563eb6722c775ba9ecafb6bab17d423fc7db6dba243a0 +DIST aws-cli-1.24.7.gh.tar.gz 2216941 BLAKE2B 132c5e1bf0ba26f5a1b25bdfaa24138d4b664d98c35edb33061513859fb52817b6fd0d3e8a18331621134f2e222bfd087f2ed30f4b23ee4960dbd5a5762decc4 SHA512 0f87ab2312171efc99fd4666c0d8935a9bb88d6ad1653ddf3a071d3ba5b36f69bbef1fe24f32c63d5e0991281cd15a9312a1f2827ad23da472aa23f58fe67b3d diff --git a/app-admin/awscli/awscli-1.24.7.ebuild b/app-admin/awscli/awscli-1.24.7.ebuild new file mode 100644 index 000000000000..acabee851193 --- /dev/null +++ b/app-admin/awscli/awscli-1.24.7.ebuild @@ -0,0 +1,71 @@ +# 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..10} ) + +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 ~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.4.0[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +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 +} |