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: Wed, 29 Jun 2022 17:39:58
Message-Id: 1656524300.90415066cee2b628e5c5d3ec3c9d7d12a7a941ca.mgorny@gentoo
1 commit: 90415066cee2b628e5c5d3ec3c9d7d12a7a941ca
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 29 17:38:20 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 17:38:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90415066
7
8 app-admin/awscli: Revert "drop versions"
9
10 This removed the next stable candidates.
11
12 Reverts: a8ef893693445ea133b29608f8f2de04f9378284
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 app-admin/awscli/Manifest | 7 +++
16 app-admin/awscli/awscli-1.25.12-r1.ebuild | 72 +++++++++++++++++++++++++++++++
17 app-admin/awscli/awscli-1.25.13-r1.ebuild | 72 +++++++++++++++++++++++++++++++
18 app-admin/awscli/awscli-1.25.14-r1.ebuild | 72 +++++++++++++++++++++++++++++++
19 app-admin/awscli/awscli-1.25.15-r1.ebuild | 72 +++++++++++++++++++++++++++++++
20 app-admin/awscli/awscli-1.25.16-r1.ebuild | 72 +++++++++++++++++++++++++++++++
21 app-admin/awscli/awscli-1.25.17-r1.ebuild | 72 +++++++++++++++++++++++++++++++
22 app-admin/awscli/awscli-1.25.18-r1.ebuild | 72 +++++++++++++++++++++++++++++++
23 8 files changed, 511 insertions(+)
24
25 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
26 index 02a0c16fc5fc..288b37b8f120 100644
27 --- a/app-admin/awscli/Manifest
28 +++ b/app-admin/awscli/Manifest
29 @@ -1,2 +1,9 @@
30 +DIST aws-cli-1.25.12.gh.tar.gz 2224456 BLAKE2B d6425983b09fc3942727108e188e184f48399388704ada03df1d65ddb9adffc9597a217b863766a862e96b59c03fdb3202e694289b54ee9298fe7e547639ecc3 SHA512 a77e0d082a8dacecadbd2fa6cc1143fa5148e075894565fe9a552e9d1a27fd068c72ae57eb5c628129bb024267111b76722cf2c40dc9f719db8d96232302b918
31 +DIST aws-cli-1.25.13.gh.tar.gz 2224352 BLAKE2B 0f6b94545f8504dcf6a458df28b39b3a909869033ccf04ad1ad3652e6606573002cbd3fed7f65756a140bac7d3b1ccddbc6fcc84391b194b3a987cf8534c4bdc SHA512 f494f9b31e91bb0e7446867efe4539f04ac91b12ad7f4db2f355d1a391ce7a8bd1d40f4afe04855d227414a7c2479ec6fdaf9a42f1959b28d205df48c2b4d723
32 +DIST aws-cli-1.25.14.gh.tar.gz 2225058 BLAKE2B 185fb35a574a73d1d43adef515dbc1e67e81bf3ba5c6511365d6633c1b3c72263b4bdd1c0449a319292fdfa2f0eaef52fd8322785f26fa7ed5da0231d5aba6b2 SHA512 e7d854cff3c68a7ad41c3f481d64b12761dffb5186cc8919ec92bd48e9f9946773382eb276722ffc9776f34a972f50773e758aaa5212c168960fff07a71196b1
33 +DIST aws-cli-1.25.15.gh.tar.gz 2225254 BLAKE2B afc4ef97b0c8eebaba3874ab5291cda8b971cc934379973b19e9ccc855b99a42be2a26737104e0eed151db280afb1c1a7866c9f8a376ec8e6a59d09372217cfa SHA512 b5dfb47b1b256b2c3ee2ca92e161f0e59afc955159e28d368ee947cc8a41765919828dcfcfd00f7024bb328f4ed698cf040f81747cc892c6c3914a1f7e97d875
34 +DIST aws-cli-1.25.16.gh.tar.gz 2225519 BLAKE2B 5800f49afe526f29b76f74078431235ab302237cbb3d6977c902d218fd65fb1eb341534020f1b8c495eb1834d3ef4c87fec7b4dee6ac8ceff4a528ec9bbf045b SHA512 4641ead6693a54d34dbd3426baaf8c389221d85aba950e21e1ba7ccbdc142633d0d4215598fe55865a90c98c4df8ea2eb78610fd0567ce49b82f32aac1941f3b
35 +DIST aws-cli-1.25.17.gh.tar.gz 2226115 BLAKE2B d07a9c7a8e13019fd728489d27465497ba31f53087ef09e5f816792267bcb58158fa0a7f71fc499d3e343b5b3a0da45cc3632f8c69345b8cd93ebc735f645672 SHA512 1a7f90e28d6702f9e73fe3a93e0d91e2c4ea3d93574f21a3ecde1148445fe6b5f98f217e2e61a1cbba50a07590f0ab0abd00390fb04cbb3db74dfff698224997
36 +DIST aws-cli-1.25.18.gh.tar.gz 2226354 BLAKE2B 5dafc484fcb592bef9e1aa18ff21897bc93c2eda049e5dff64d706fc492c5778ccb818c4368b95ee7f326ad47ee59b7b230875d1ef6e63ed7997e1e761228fd9 SHA512 40a5f0d35956d8fadc8950e0498e9254126914172a26b092ad6cb874f32e9f36a790295687da30d3e9bc41e41672d1e1424ba91051d4e32c46e44ef89601b289
37 DIST aws-cli-1.25.19.gh.tar.gz 2227148 BLAKE2B a39de70c887b6e036303cdfb9fa435674cd5beb2482c1c71efbdfd675addef72772e538c11850b93be9430d12ce5a7d3293f18bec1a3bd6fd9b4d0c675b7d307 SHA512 430cbc322a26031211fbdb8a9ec4ee810d50b78a80d50b5e8fa254f22fd5131b3b5fc791db10d27d0b85ccb82b4a2a74dac4f1a1f14299262668743417532ec0
38 DIST aws-cli-1.25.7.gh.tar.gz 2223153 BLAKE2B fcadda94fd721135f94b1538c4b27e41108064f6fd32f324d5436138e3d1b0ffcab53fcc545b01c461365d55c4bfa2a05d90e94c875c929a3227efae76452415 SHA512 194adacab0df87d8e4f0cdc71bb956bef6dc8b2de2e7e4416c9c079ff2b7c2bce7584ac1049428d0bcb134368b39c37c04bc5e6a8fc7540c44c64f3934ccaf21
39
40 diff --git a/app-admin/awscli/awscli-1.25.12-r1.ebuild b/app-admin/awscli/awscli-1.25.12-r1.ebuild
41 new file mode 100644
42 index 000000000000..9f176fa05cc8
43 --- /dev/null
44 +++ b/app-admin/awscli/awscli-1.25.12-r1.ebuild
45 @@ -0,0 +1,72 @@
46 +# Copyright 1999-2022 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=8
50 +
51 +DISTUTILS_USE_PEP517=setuptools
52 +PYTHON_COMPAT=( python3_{8..10} )
53 +
54 +inherit bash-completion-r1 distutils-r1 multiprocessing
55 +
56 +MY_P=aws-cli-${PV}
57 +DESCRIPTION="Universal Command Line Environment for AWS"
58 +HOMEPAGE="
59 + https://github.com/aws/aws-cli/
60 + https://pypi.org/project/awscli/
61 +"
62 +SRC_URI="
63 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
64 + -> ${MY_P}.gh.tar.gz
65 +"
66 +S=${WORKDIR}/${MY_P}
67 +
68 +LICENSE="Apache-2.0"
69 +SLOT="0"
70 +KEYWORDS="~amd64 ~arm64 ~x86"
71 +
72 +# botocore is x.(y+2).z
73 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
74 +RDEPEND="
75 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
76 + dev-python/colorama[${PYTHON_USEDEP}]
77 + dev-python/docutils[${PYTHON_USEDEP}]
78 + dev-python/rsa[${PYTHON_USEDEP}]
79 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
80 + dev-python/pyyaml[${PYTHON_USEDEP}]
81 + !app-admin/awscli-bin
82 +"
83 +BDEPEND="
84 + test? (
85 + dev-python/pytest-forked[${PYTHON_USEDEP}]
86 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
87 + )
88 +"
89 +
90 +distutils_enable_tests pytest
91 +
92 +src_prepare() {
93 + # do not rely on bundled deps in botocore (sic!)
94 + find -name '*.py' -exec sed -i \
95 + -e 's:from botocore[.]vendored import:import:' \
96 + -e 's:from botocore[.]vendored[.]:from :' \
97 + {} + || die
98 + # strip overzealous upper bounds on requirements
99 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
100 + distutils-r1_src_prepare
101 +}
102 +
103 +python_test() {
104 + # integration tests require AWS credentials and Internet access
105 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
106 +}
107 +
108 +python_install_all() {
109 + newbashcomp bin/aws_bash_completer aws
110 +
111 + insinto /usr/share/zsh/site-functions
112 + newins bin/aws_zsh_completer.sh _aws
113 +
114 + distutils-r1_python_install_all
115 +
116 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
117 +}
118
119 diff --git a/app-admin/awscli/awscli-1.25.13-r1.ebuild b/app-admin/awscli/awscli-1.25.13-r1.ebuild
120 new file mode 100644
121 index 000000000000..9f176fa05cc8
122 --- /dev/null
123 +++ b/app-admin/awscli/awscli-1.25.13-r1.ebuild
124 @@ -0,0 +1,72 @@
125 +# Copyright 1999-2022 Gentoo Authors
126 +# Distributed under the terms of the GNU General Public License v2
127 +
128 +EAPI=8
129 +
130 +DISTUTILS_USE_PEP517=setuptools
131 +PYTHON_COMPAT=( python3_{8..10} )
132 +
133 +inherit bash-completion-r1 distutils-r1 multiprocessing
134 +
135 +MY_P=aws-cli-${PV}
136 +DESCRIPTION="Universal Command Line Environment for AWS"
137 +HOMEPAGE="
138 + https://github.com/aws/aws-cli/
139 + https://pypi.org/project/awscli/
140 +"
141 +SRC_URI="
142 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
143 + -> ${MY_P}.gh.tar.gz
144 +"
145 +S=${WORKDIR}/${MY_P}
146 +
147 +LICENSE="Apache-2.0"
148 +SLOT="0"
149 +KEYWORDS="~amd64 ~arm64 ~x86"
150 +
151 +# botocore is x.(y+2).z
152 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
153 +RDEPEND="
154 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
155 + dev-python/colorama[${PYTHON_USEDEP}]
156 + dev-python/docutils[${PYTHON_USEDEP}]
157 + dev-python/rsa[${PYTHON_USEDEP}]
158 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
159 + dev-python/pyyaml[${PYTHON_USEDEP}]
160 + !app-admin/awscli-bin
161 +"
162 +BDEPEND="
163 + test? (
164 + dev-python/pytest-forked[${PYTHON_USEDEP}]
165 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
166 + )
167 +"
168 +
169 +distutils_enable_tests pytest
170 +
171 +src_prepare() {
172 + # do not rely on bundled deps in botocore (sic!)
173 + find -name '*.py' -exec sed -i \
174 + -e 's:from botocore[.]vendored import:import:' \
175 + -e 's:from botocore[.]vendored[.]:from :' \
176 + {} + || die
177 + # strip overzealous upper bounds on requirements
178 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
179 + distutils-r1_src_prepare
180 +}
181 +
182 +python_test() {
183 + # integration tests require AWS credentials and Internet access
184 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
185 +}
186 +
187 +python_install_all() {
188 + newbashcomp bin/aws_bash_completer aws
189 +
190 + insinto /usr/share/zsh/site-functions
191 + newins bin/aws_zsh_completer.sh _aws
192 +
193 + distutils-r1_python_install_all
194 +
195 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
196 +}
197
198 diff --git a/app-admin/awscli/awscli-1.25.14-r1.ebuild b/app-admin/awscli/awscli-1.25.14-r1.ebuild
199 new file mode 100644
200 index 000000000000..9f176fa05cc8
201 --- /dev/null
202 +++ b/app-admin/awscli/awscli-1.25.14-r1.ebuild
203 @@ -0,0 +1,72 @@
204 +# Copyright 1999-2022 Gentoo Authors
205 +# Distributed under the terms of the GNU General Public License v2
206 +
207 +EAPI=8
208 +
209 +DISTUTILS_USE_PEP517=setuptools
210 +PYTHON_COMPAT=( python3_{8..10} )
211 +
212 +inherit bash-completion-r1 distutils-r1 multiprocessing
213 +
214 +MY_P=aws-cli-${PV}
215 +DESCRIPTION="Universal Command Line Environment for AWS"
216 +HOMEPAGE="
217 + https://github.com/aws/aws-cli/
218 + https://pypi.org/project/awscli/
219 +"
220 +SRC_URI="
221 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
222 + -> ${MY_P}.gh.tar.gz
223 +"
224 +S=${WORKDIR}/${MY_P}
225 +
226 +LICENSE="Apache-2.0"
227 +SLOT="0"
228 +KEYWORDS="~amd64 ~arm64 ~x86"
229 +
230 +# botocore is x.(y+2).z
231 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
232 +RDEPEND="
233 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
234 + dev-python/colorama[${PYTHON_USEDEP}]
235 + dev-python/docutils[${PYTHON_USEDEP}]
236 + dev-python/rsa[${PYTHON_USEDEP}]
237 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
238 + dev-python/pyyaml[${PYTHON_USEDEP}]
239 + !app-admin/awscli-bin
240 +"
241 +BDEPEND="
242 + test? (
243 + dev-python/pytest-forked[${PYTHON_USEDEP}]
244 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
245 + )
246 +"
247 +
248 +distutils_enable_tests pytest
249 +
250 +src_prepare() {
251 + # do not rely on bundled deps in botocore (sic!)
252 + find -name '*.py' -exec sed -i \
253 + -e 's:from botocore[.]vendored import:import:' \
254 + -e 's:from botocore[.]vendored[.]:from :' \
255 + {} + || die
256 + # strip overzealous upper bounds on requirements
257 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
258 + distutils-r1_src_prepare
259 +}
260 +
261 +python_test() {
262 + # integration tests require AWS credentials and Internet access
263 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
264 +}
265 +
266 +python_install_all() {
267 + newbashcomp bin/aws_bash_completer aws
268 +
269 + insinto /usr/share/zsh/site-functions
270 + newins bin/aws_zsh_completer.sh _aws
271 +
272 + distutils-r1_python_install_all
273 +
274 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
275 +}
276
277 diff --git a/app-admin/awscli/awscli-1.25.15-r1.ebuild b/app-admin/awscli/awscli-1.25.15-r1.ebuild
278 new file mode 100644
279 index 000000000000..9f176fa05cc8
280 --- /dev/null
281 +++ b/app-admin/awscli/awscli-1.25.15-r1.ebuild
282 @@ -0,0 +1,72 @@
283 +# Copyright 1999-2022 Gentoo Authors
284 +# Distributed under the terms of the GNU General Public License v2
285 +
286 +EAPI=8
287 +
288 +DISTUTILS_USE_PEP517=setuptools
289 +PYTHON_COMPAT=( python3_{8..10} )
290 +
291 +inherit bash-completion-r1 distutils-r1 multiprocessing
292 +
293 +MY_P=aws-cli-${PV}
294 +DESCRIPTION="Universal Command Line Environment for AWS"
295 +HOMEPAGE="
296 + https://github.com/aws/aws-cli/
297 + https://pypi.org/project/awscli/
298 +"
299 +SRC_URI="
300 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
301 + -> ${MY_P}.gh.tar.gz
302 +"
303 +S=${WORKDIR}/${MY_P}
304 +
305 +LICENSE="Apache-2.0"
306 +SLOT="0"
307 +KEYWORDS="~amd64 ~arm64 ~x86"
308 +
309 +# botocore is x.(y+2).z
310 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
311 +RDEPEND="
312 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
313 + dev-python/colorama[${PYTHON_USEDEP}]
314 + dev-python/docutils[${PYTHON_USEDEP}]
315 + dev-python/rsa[${PYTHON_USEDEP}]
316 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
317 + dev-python/pyyaml[${PYTHON_USEDEP}]
318 + !app-admin/awscli-bin
319 +"
320 +BDEPEND="
321 + test? (
322 + dev-python/pytest-forked[${PYTHON_USEDEP}]
323 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
324 + )
325 +"
326 +
327 +distutils_enable_tests pytest
328 +
329 +src_prepare() {
330 + # do not rely on bundled deps in botocore (sic!)
331 + find -name '*.py' -exec sed -i \
332 + -e 's:from botocore[.]vendored import:import:' \
333 + -e 's:from botocore[.]vendored[.]:from :' \
334 + {} + || die
335 + # strip overzealous upper bounds on requirements
336 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
337 + distutils-r1_src_prepare
338 +}
339 +
340 +python_test() {
341 + # integration tests require AWS credentials and Internet access
342 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
343 +}
344 +
345 +python_install_all() {
346 + newbashcomp bin/aws_bash_completer aws
347 +
348 + insinto /usr/share/zsh/site-functions
349 + newins bin/aws_zsh_completer.sh _aws
350 +
351 + distutils-r1_python_install_all
352 +
353 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
354 +}
355
356 diff --git a/app-admin/awscli/awscli-1.25.16-r1.ebuild b/app-admin/awscli/awscli-1.25.16-r1.ebuild
357 new file mode 100644
358 index 000000000000..9f176fa05cc8
359 --- /dev/null
360 +++ b/app-admin/awscli/awscli-1.25.16-r1.ebuild
361 @@ -0,0 +1,72 @@
362 +# Copyright 1999-2022 Gentoo Authors
363 +# Distributed under the terms of the GNU General Public License v2
364 +
365 +EAPI=8
366 +
367 +DISTUTILS_USE_PEP517=setuptools
368 +PYTHON_COMPAT=( python3_{8..10} )
369 +
370 +inherit bash-completion-r1 distutils-r1 multiprocessing
371 +
372 +MY_P=aws-cli-${PV}
373 +DESCRIPTION="Universal Command Line Environment for AWS"
374 +HOMEPAGE="
375 + https://github.com/aws/aws-cli/
376 + https://pypi.org/project/awscli/
377 +"
378 +SRC_URI="
379 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
380 + -> ${MY_P}.gh.tar.gz
381 +"
382 +S=${WORKDIR}/${MY_P}
383 +
384 +LICENSE="Apache-2.0"
385 +SLOT="0"
386 +KEYWORDS="~amd64 ~arm64 ~x86"
387 +
388 +# botocore is x.(y+2).z
389 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
390 +RDEPEND="
391 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
392 + dev-python/colorama[${PYTHON_USEDEP}]
393 + dev-python/docutils[${PYTHON_USEDEP}]
394 + dev-python/rsa[${PYTHON_USEDEP}]
395 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
396 + dev-python/pyyaml[${PYTHON_USEDEP}]
397 + !app-admin/awscli-bin
398 +"
399 +BDEPEND="
400 + test? (
401 + dev-python/pytest-forked[${PYTHON_USEDEP}]
402 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
403 + )
404 +"
405 +
406 +distutils_enable_tests pytest
407 +
408 +src_prepare() {
409 + # do not rely on bundled deps in botocore (sic!)
410 + find -name '*.py' -exec sed -i \
411 + -e 's:from botocore[.]vendored import:import:' \
412 + -e 's:from botocore[.]vendored[.]:from :' \
413 + {} + || die
414 + # strip overzealous upper bounds on requirements
415 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
416 + distutils-r1_src_prepare
417 +}
418 +
419 +python_test() {
420 + # integration tests require AWS credentials and Internet access
421 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
422 +}
423 +
424 +python_install_all() {
425 + newbashcomp bin/aws_bash_completer aws
426 +
427 + insinto /usr/share/zsh/site-functions
428 + newins bin/aws_zsh_completer.sh _aws
429 +
430 + distutils-r1_python_install_all
431 +
432 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
433 +}
434
435 diff --git a/app-admin/awscli/awscli-1.25.17-r1.ebuild b/app-admin/awscli/awscli-1.25.17-r1.ebuild
436 new file mode 100644
437 index 000000000000..9f176fa05cc8
438 --- /dev/null
439 +++ b/app-admin/awscli/awscli-1.25.17-r1.ebuild
440 @@ -0,0 +1,72 @@
441 +# Copyright 1999-2022 Gentoo Authors
442 +# Distributed under the terms of the GNU General Public License v2
443 +
444 +EAPI=8
445 +
446 +DISTUTILS_USE_PEP517=setuptools
447 +PYTHON_COMPAT=( python3_{8..10} )
448 +
449 +inherit bash-completion-r1 distutils-r1 multiprocessing
450 +
451 +MY_P=aws-cli-${PV}
452 +DESCRIPTION="Universal Command Line Environment for AWS"
453 +HOMEPAGE="
454 + https://github.com/aws/aws-cli/
455 + https://pypi.org/project/awscli/
456 +"
457 +SRC_URI="
458 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
459 + -> ${MY_P}.gh.tar.gz
460 +"
461 +S=${WORKDIR}/${MY_P}
462 +
463 +LICENSE="Apache-2.0"
464 +SLOT="0"
465 +KEYWORDS="~amd64 ~arm64 ~x86"
466 +
467 +# botocore is x.(y+2).z
468 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
469 +RDEPEND="
470 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
471 + dev-python/colorama[${PYTHON_USEDEP}]
472 + dev-python/docutils[${PYTHON_USEDEP}]
473 + dev-python/rsa[${PYTHON_USEDEP}]
474 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
475 + dev-python/pyyaml[${PYTHON_USEDEP}]
476 + !app-admin/awscli-bin
477 +"
478 +BDEPEND="
479 + test? (
480 + dev-python/pytest-forked[${PYTHON_USEDEP}]
481 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
482 + )
483 +"
484 +
485 +distutils_enable_tests pytest
486 +
487 +src_prepare() {
488 + # do not rely on bundled deps in botocore (sic!)
489 + find -name '*.py' -exec sed -i \
490 + -e 's:from botocore[.]vendored import:import:' \
491 + -e 's:from botocore[.]vendored[.]:from :' \
492 + {} + || die
493 + # strip overzealous upper bounds on requirements
494 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
495 + distutils-r1_src_prepare
496 +}
497 +
498 +python_test() {
499 + # integration tests require AWS credentials and Internet access
500 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
501 +}
502 +
503 +python_install_all() {
504 + newbashcomp bin/aws_bash_completer aws
505 +
506 + insinto /usr/share/zsh/site-functions
507 + newins bin/aws_zsh_completer.sh _aws
508 +
509 + distutils-r1_python_install_all
510 +
511 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
512 +}
513
514 diff --git a/app-admin/awscli/awscli-1.25.18-r1.ebuild b/app-admin/awscli/awscli-1.25.18-r1.ebuild
515 new file mode 100644
516 index 000000000000..9f176fa05cc8
517 --- /dev/null
518 +++ b/app-admin/awscli/awscli-1.25.18-r1.ebuild
519 @@ -0,0 +1,72 @@
520 +# Copyright 1999-2022 Gentoo Authors
521 +# Distributed under the terms of the GNU General Public License v2
522 +
523 +EAPI=8
524 +
525 +DISTUTILS_USE_PEP517=setuptools
526 +PYTHON_COMPAT=( python3_{8..10} )
527 +
528 +inherit bash-completion-r1 distutils-r1 multiprocessing
529 +
530 +MY_P=aws-cli-${PV}
531 +DESCRIPTION="Universal Command Line Environment for AWS"
532 +HOMEPAGE="
533 + https://github.com/aws/aws-cli/
534 + https://pypi.org/project/awscli/
535 +"
536 +SRC_URI="
537 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
538 + -> ${MY_P}.gh.tar.gz
539 +"
540 +S=${WORKDIR}/${MY_P}
541 +
542 +LICENSE="Apache-2.0"
543 +SLOT="0"
544 +KEYWORDS="~amd64 ~arm64 ~x86"
545 +
546 +# botocore is x.(y+2).z
547 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
548 +RDEPEND="
549 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
550 + dev-python/colorama[${PYTHON_USEDEP}]
551 + dev-python/docutils[${PYTHON_USEDEP}]
552 + dev-python/rsa[${PYTHON_USEDEP}]
553 + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
554 + dev-python/pyyaml[${PYTHON_USEDEP}]
555 + !app-admin/awscli-bin
556 +"
557 +BDEPEND="
558 + test? (
559 + dev-python/pytest-forked[${PYTHON_USEDEP}]
560 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
561 + )
562 +"
563 +
564 +distutils_enable_tests pytest
565 +
566 +src_prepare() {
567 + # do not rely on bundled deps in botocore (sic!)
568 + find -name '*.py' -exec sed -i \
569 + -e 's:from botocore[.]vendored import:import:' \
570 + -e 's:from botocore[.]vendored[.]:from :' \
571 + {} + || die
572 + # strip overzealous upper bounds on requirements
573 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
574 + distutils-r1_src_prepare
575 +}
576 +
577 +python_test() {
578 + # integration tests require AWS credentials and Internet access
579 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
580 +}
581 +
582 +python_install_all() {
583 + newbashcomp bin/aws_bash_completer aws
584 +
585 + insinto /usr/share/zsh/site-functions
586 + newins bin/aws_zsh_completer.sh _aws
587 +
588 + distutils-r1_python_install_all
589 +
590 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
591 +}