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