1 |
commit: 4923c652f2eee32b3baf9ceaa3f666796bae41f4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 6 22:17:26 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 6 23:07:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4923c652 |
7 |
|
8 |
app-admin/awscli: Bump to 1.22.21 |
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.22.21.ebuild | 58 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest |
17 |
index 451cfcd74392..725b96e382a3 100644 |
18 |
--- a/app-admin/awscli/Manifest |
19 |
+++ b/app-admin/awscli/Manifest |
20 |
@@ -5,4 +5,5 @@ DIST awscli-1.22.17.tar.gz 2123827 BLAKE2B e721c09ed07afcde2026b58623ecfeafd2433 |
21 |
DIST awscli-1.22.18.tar.gz 2124899 BLAKE2B bf1960c9b24e0f4581e5d495e68b0c4ed69f0d0de29e77709cc9ab50dbf6099a2244d917ec5162cb30f76f30a38a8ae0477f3424a28a9d276afd46b31a8807e1 SHA512 80abf1ff0c89abf308c840856c67888f39220d05b04032f3ae8c9efeb98d6fafb67bbcce804c36515337d0e1b3c6405d7a85fd42cca59030002bb62c89f56070 |
22 |
DIST awscli-1.22.19.tar.gz 2125676 BLAKE2B 9ff59cf2eb220452744b221a1419f82adc849bb69355ee2716112e87be98e6945af1bdeb8c643ee553003842546677bcc3aca625bfc7c003a539b2b0b0d06743 SHA512 4cbaceeb4db0e3b22327b934f703f3015ccfc368d5e308bd1e5692423b8b802c2ad8ac68ee918dbedb82cd7c5e1209c4aae78c26bed898b9c58c125277001308 |
23 |
DIST awscli-1.22.20.tar.gz 2126171 BLAKE2B 93c906ae19a1e11eca78e29e4eee99307465e92f22f1fc4ae26552decfc593c928ed036af62bc697404f7e76bb91b039887133df7351911da36693bcb6bd9530 SHA512 80939328c313d201ccfd691962b49c1960805b30b9ee04440c71194ee16b06a6c4190a122a78f5fd925ecbe45d53e89e7921052ad81dfaada4e7a7b9b5d26680 |
24 |
+DIST awscli-1.22.21.tar.gz 2126474 BLAKE2B b1debfea55e0c1f32b191e91ac1627312056573ae0d398ecd8c9efc56d4ef67d65a8d1fd3aca8add8b5583e0791444551987aa23ce95209b068efdff4a2a2b81 SHA512 6b4e7a5d7a789ce55ee6e5073922f275a264ecd1358df2b470b2a789cc334678749acc0031cc8004527686f0d7899d55a8084daf15383c8144dc61a80f079313 |
25 |
DIST awscli-1.22.5.tar.gz 2111679 BLAKE2B 970e472e8de43664d060023fdab9f54ce848c5655d8aa417efeae1b1efb52989fd021817521db9dc9cd64580cabbf0c30f3d0178034bdb1edf41feebbc690f46 SHA512 9177fe9da0fb8e9e28777bbf8f2c3fe089a08851b57a49fecefab43417fff187584638d17394289bf6df3d18d9052fd958bd3fbc8064327120af04a0cbe30494 |
26 |
|
27 |
diff --git a/app-admin/awscli/awscli-1.22.21.ebuild b/app-admin/awscli/awscli-1.22.21.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..85073515ab9a |
30 |
--- /dev/null |
31 |
+++ b/app-admin/awscli/awscli-1.22.21.ebuild |
32 |
@@ -0,0 +1,58 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit bash-completion-r1 distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Universal Command Line Environment for AWS" |
42 |
+HOMEPAGE="https://pypi.org/project/awscli/" |
43 |
+#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
44 |
+SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+S="${WORKDIR}/aws-cli-${PV}" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
50 |
+ |
51 |
+# botocore is x.(y+1).z |
52 |
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)" |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] |
55 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
56 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
57 |
+ dev-python/rsa[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}] |
59 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests --install pytest |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # do not rely on bundled deps in botocore (sic!) |
66 |
+ find -name '*.py' -exec sed -i \ |
67 |
+ -e 's:from botocore[.]vendored import:import:' \ |
68 |
+ -e 's:from botocore[.]vendored[.]:from :' \ |
69 |
+ {} + || die |
70 |
+ # strip overzealous upper bounds on requirements |
71 |
+ sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die |
72 |
+ distutils-r1_src_prepare |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ distutils_install_for_testing |
77 |
+ # integration tests require AWS credentials and Internet access |
78 |
+ epytest tests/{functional,unit} |
79 |
+} |
80 |
+ |
81 |
+python_install_all() { |
82 |
+ newbashcomp bin/aws_bash_completer aws |
83 |
+ |
84 |
+ insinto /usr/share/zsh/site-functions |
85 |
+ newins bin/aws_zsh_completer.sh _aws |
86 |
+ |
87 |
+ distutils-r1_python_install_all |
88 |
+ |
89 |
+ rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die |
90 |
+} |