1 |
commit: 4a63fcf87c3d2ef3e039b8f6531e16f2e6a0975e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 21:01:17 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 21:36:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a63fcf8 |
7 |
|
8 |
app-admin/awscli: Bump to 1.22.59 |
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.59.ebuild | 59 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest |
17 |
index e5d9fec02119..85cb89804b51 100644 |
18 |
--- a/app-admin/awscli/Manifest |
19 |
+++ b/app-admin/awscli/Manifest |
20 |
@@ -7,3 +7,4 @@ DIST awscli-1.22.55.tar.gz 2164540 BLAKE2B 7e69d2810ba3a829522e4ada836f70d229ac6 |
21 |
DIST awscli-1.22.56.tar.gz 2164531 BLAKE2B 86ed7632aded1a5c3b18d2eabfbf5fd9954ef2d8f61ebf5c23e596452381a3915909d6fc93c92eaa5d58f02a27df994476fbc847b40984c141946e6f08933dd8 SHA512 fb4ad95f2990397fb1d83559e71dbebf1b4f2f52b46912da02bded1d486a61141c94dabc0f59ba2ffd724ef7e379f66113a71f2ea466e7a28cf6ac9582579004 |
22 |
DIST awscli-1.22.57.tar.gz 2164852 BLAKE2B 4387cd8a93972f23149c722aa03ce26f9d9fe8daa908d3d9db6e6e845265089a663d8b20f6cb7bd858f69ca29cbbda94813f58349921659534250177eb21dea6 SHA512 ad7912aa9bd2318b043796ffce4df42915e4af60ce85f76236ff9e9c1b06ef87a7acc45e560abcfc48c06ab9f14a9d3ebad12b9d02a02f66c9bbaccbbcc66100 |
23 |
DIST awscli-1.22.58.tar.gz 2165016 BLAKE2B d7eec5a51a64d3a78555abfd4a3dd70a02b4e2c4399b57a023bf81603946cbbce3c0a5e49b02d90adfc74ea9d060f72d0350a9673abe855164aede6e35530085 SHA512 62e9eff1c8d0ad035566fb97bf26d52554cf314c35bf2277062aadcaa7d96a8c1cb949c85f61a79ace17821f5355d93aeb9f5692b8ca417e852fa4e3aa1325c9 |
24 |
+DIST awscli-1.22.59.tar.gz 2165629 BLAKE2B f4223e9095a76121a94345219057b94b830c80c233ebec8864110945d71317e94fe2f08f02e059816f1bdd9e1e2f4800e1f9770559bec4df51d5d39286e11bd0 SHA512 0efa161c976e6dd6168a7d8808298a196c0c6e3d4b54c9130efcf88179d6e6f78ae0a231a6c31e1615c84165ba33fffebefccd322442289537c9502102b5ee11 |
25 |
|
26 |
diff --git a/app-admin/awscli/awscli-1.22.59.ebuild b/app-admin/awscli/awscli-1.22.59.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..2fb60d145aa8 |
29 |
--- /dev/null |
30 |
+++ b/app-admin/awscli/awscli-1.22.59.ebuild |
31 |
@@ -0,0 +1,59 @@ |
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 |
+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 |
+# awscli 1.22.55 → botocore 1.24.0 |
52 |
+# so botocore is x.(y+2).(z-55) |
53 |
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 55))" |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] |
56 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
57 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
58 |
+ dev-python/rsa[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}] |
60 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ # do not rely on bundled deps in botocore (sic!) |
67 |
+ find -name '*.py' -exec sed -i \ |
68 |
+ -e 's:from botocore[.]vendored import:import:' \ |
69 |
+ -e 's:from botocore[.]vendored[.]:from :' \ |
70 |
+ {} + || die |
71 |
+ # strip overzealous upper bounds on requirements |
72 |
+ sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die |
73 |
+ distutils-r1_src_prepare |
74 |
+} |
75 |
+ |
76 |
+python_test() { |
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 |
+} |