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, 01 Dec 2021 07:46:00
Message-Id: 1638344754.e896f9b37e824d41cdc97a1f392b68e1e3542b13.mgorny@gentoo
1 commit: e896f9b37e824d41cdc97a1f392b68e1e3542b13
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 1 07:02:27 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 1 07:45:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e896f9b3
7
8 app-admin/awscli: Bump to 1.22.17
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.17.ebuild | 58 ++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 97dffd698a62..1187f70d8c53 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,4 +1,5 @@
21 DIST awscli-1.21.12.tar.gz 2097963 BLAKE2B e752cb1369be9ee26b517ba1226d3e16fad0a075c7f82eb1fcce3a3076aa67c5dcf4bdefcc6c29166ac7a96a2aa59da24636ddf1d3eb9bd21f3f05e665581de3 SHA512 90f39476b86ce97c0b47910b2d5cf5c512f142c1bf1620d0fa2384bfb40e54f812269e7f1ff72951ee13f37e6c918061c2d592b4e96e46116032810e1eb6bcb1
22 DIST awscli-1.22.14.tar.gz 2120655 BLAKE2B ffba1bea0574830e6eb3e343b5d83a308e19b557ddde981066b93008062c0702bfba47b7ff7ddc86d4f148606cce8089e81525c54a11eef23906ef1df6303af7 SHA512 0585d8f4842b23065a14cd1f73a7ee810d705ab4d2480591ebf13b640d7501ec784fb2000cdc685cbc6c4e996b7d68763ed79d2122bd61e07a0f97822c925d12
23 DIST awscli-1.22.15.tar.gz 2121382 BLAKE2B 849a40f41382a8bbff235791848056791fb636bebf4e0a870804378a39d427db432dff9ede40f93cfcdb0a6d944f213040fe4ef4337e6dc778475860efb0a965 SHA512 380d79f5ecd6c728fc526f8b4384740f8b08ff704d71507dd536f650de103740814ed421132bdb78c86d4da1f05b0ed61b1ff661f15fa4617e9d96e217d07673
24 +DIST awscli-1.22.17.tar.gz 2123827 BLAKE2B e721c09ed07afcde2026b58623ecfeafd2433dbff7beabcad46aa87659e9817613b647210799ac2c6a070c77169d815e592bed0b94441b69318c3287412aaf02 SHA512 84fd1a8f7904766cbae6180591762bd4531e88b3d404bb97198d96cb99bd89923d7c1809b5d6675f2cfcad143e64bbc05359cf9cfcad9fdc245a007a7525e2cf
25 DIST awscli-1.22.5.tar.gz 2111679 BLAKE2B 970e472e8de43664d060023fdab9f54ce848c5655d8aa417efeae1b1efb52989fd021817521db9dc9cd64580cabbf0c30f3d0178034bdb1edf41feebbc690f46 SHA512 9177fe9da0fb8e9e28777bbf8f2c3fe089a08851b57a49fecefab43417fff187584638d17394289bf6df3d18d9052fd958bd3fbc8064327120af04a0cbe30494
26
27 diff --git a/app-admin/awscli/awscli-1.22.17.ebuild b/app-admin/awscli/awscli-1.22.17.ebuild
28 new file mode 100644
29 index 000000000000..85073515ab9a
30 --- /dev/null
31 +++ b/app-admin/awscli/awscli-1.22.17.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 +}