Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/awscli/
Date: Sat, 28 May 2022 05:00:23
Message-Id: 1653714012.08cf237786ef77451b4a6d338bbb908749a8ef0d.mgorny@gentoo
1 commit: 08cf237786ef77451b4a6d338bbb908749a8ef0d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 28 04:06:07 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 28 05:00:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cf2377
7
8 app-admin/awscli: Bump to 1.24.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-admin/awscli/Manifest | 1 +
13 app-admin/awscli/awscli-1.24.10.ebuild | 71 ++++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 056de8a3f640..92a0599d7a74 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,6 +1,7 @@
21 DIST aws-cli-1.23.9.gh.tar.gz 2204177 BLAKE2B 6f3b975ffa10b027a4ccd07bb27ec9a9c0b1e5151fe2e33685c6eb15eafd551afde3a619e7b2f60cf42328b5f53ff0de2c2e41f1c105807e13fa77ebe957d5cb SHA512 75e9222bc3fb26c2f8c5cbe7c32ee06a48163517e14d23e8432178af8a702e26444cee78336703a1bfa7f6963d7fd05cf2581d887382daf1650cfb9c8bc2eeb8
22 DIST aws-cli-1.24.0.gh.tar.gz 2206596 BLAKE2B 5b73eca17e16dec43bfdee4271fc29f3dd7194c2de6cc27d00ec3fab5f0dc968b46312a490eb6b53760ceb12370a247f95f0a1b433d3e16b09f09c6d594c51a0 SHA512 d9c5778352d9ca787db305905214fc7b71b5bbc36ee0de4815bbc7d0bcac549c11e5b480090f5fac904aa8bf7735850a3151912abdceb225bd4a998100f48a3d
23 DIST aws-cli-1.24.1.gh.tar.gz 2213336 BLAKE2B 2d442ac650b524c8b52be2288aefa76693221a3becbbc752d1add748d731887cbac6b96b0a30e48587714e31d399830fef848598b2104e749de40a52e96917d5 SHA512 097ac7b3d64f017ca5c3c979ed5bc191860cb7431cc9eea81e4f9f760f8760e4884ea04d3c93fbc839f1d0c03c3431c3041f32508026f869b27e25c280ef458b
24 +DIST aws-cli-1.24.10.gh.tar.gz 2219050 BLAKE2B 9655429a65c81b5c6436f0bafb293243d8f6d2160573902bbd3f2b10ab69ef24796ac0c1bd112000afc3d15cc4d8560fc95f774c38739cf8e2d3303a4512e3ec SHA512 592564ff501ff52572655973c518366928a20371333ccf4f7234d414070343a38287a8870a5652bbbe6a8c35c8cd8731439f1520c0988100ade22d842f11ad2d
25 DIST aws-cli-1.24.2.gh.tar.gz 2214514 BLAKE2B 93c2e58377f302435c078a0ad4a8b3f465631965633ce51a2993ce57152026b99eb9599620c1400ced0ddd6d1024258d93dca3c4f3bfa3a6f59c3ff56a98a897 SHA512 5f58967714c1285ca065e90aa567370c3b3b11619e812fa271aaeb1e1c5af55a2388fadcccc441a808e6cf73275c3cffbba86699dc4cbd86f09fbcf20c7f1734
26 DIST aws-cli-1.24.3.gh.tar.gz 2215539 BLAKE2B b571cac95eed696dd3a9242d8291d42ab9c66d192bf090c8df02cdccfe2ab84bdbf73fa145d9ca30cdf3313f39c5b66a931bf5aa3745ad56202aaff787b827d8 SHA512 e9eadd4e82d3fe56eb227eff0fa6bb0080755f4f7ae4219340c73dabbca5b6e6256bdd3a9ff116878becd47e7a245752ad6ea25c7908d9429c41a12b14ab2c59
27 DIST aws-cli-1.24.4.gh.tar.gz 2215845 BLAKE2B 9b95b53feba4d61e44276c7ee1587a45f91d4171ba102327bb23b308b801a7322873a8e48e420c66a72123fa6ed3e49f54d8d63eaac638d1bd0f80d27a9f1013 SHA512 345e6fc02c04e6a1c2635a29e4c2a00a2ba14ccf2f1de6167ac8113a05cee01b33add850b4bf95ce9ca22449101c0b49993841097d4d3bc7836ca9fd9f80748d
28
29 diff --git a/app-admin/awscli/awscli-1.24.10.ebuild b/app-admin/awscli/awscli-1.24.10.ebuild
30 new file mode 100644
31 index 000000000000..acabee851193
32 --- /dev/null
33 +++ b/app-admin/awscli/awscli-1.24.10.ebuild
34 @@ -0,0 +1,71 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +DISTUTILS_USE_PEP517=setuptools
41 +PYTHON_COMPAT=( python3_{8..10} )
42 +
43 +inherit bash-completion-r1 distutils-r1 multiprocessing
44 +
45 +MY_P=aws-cli-${PV}
46 +DESCRIPTION="Universal Command Line Environment for AWS"
47 +HOMEPAGE="
48 + https://github.com/aws/aws-cli/
49 + https://pypi.org/project/awscli/
50 +"
51 +SRC_URI="
52 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
53 + -> ${MY_P}.gh.tar.gz
54 +"
55 +S=${WORKDIR}/${MY_P}
56 +
57 +LICENSE="Apache-2.0"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~arm64 ~x86"
60 +
61 +# botocore is x.(y+2).z
62 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
63 +RDEPEND="
64 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
65 + dev-python/colorama[${PYTHON_USEDEP}]
66 + dev-python/docutils[${PYTHON_USEDEP}]
67 + dev-python/rsa[${PYTHON_USEDEP}]
68 + >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
69 + dev-python/pyyaml[${PYTHON_USEDEP}]
70 +"
71 +BDEPEND="
72 + test? (
73 + dev-python/pytest-forked[${PYTHON_USEDEP}]
74 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
75 + )
76 +"
77 +
78 +distutils_enable_tests pytest
79 +
80 +src_prepare() {
81 + # do not rely on bundled deps in botocore (sic!)
82 + find -name '*.py' -exec sed -i \
83 + -e 's:from botocore[.]vendored import:import:' \
84 + -e 's:from botocore[.]vendored[.]:from :' \
85 + {} + || die
86 + # strip overzealous upper bounds on requirements
87 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
88 + distutils-r1_src_prepare
89 +}
90 +
91 +python_test() {
92 + # integration tests require AWS credentials and Internet access
93 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
94 +}
95 +
96 +python_install_all() {
97 + newbashcomp bin/aws_bash_completer aws
98 +
99 + insinto /usr/share/zsh/site-functions
100 + newins bin/aws_zsh_completer.sh _aws
101 +
102 + distutils-r1_python_install_all
103 +
104 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
105 +}