Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/awscli/
Date: Fri, 06 May 2022 07:08:58
Message-Id: 1651820857.790edc5af57a17cd15818ccd073a0305daf63c97.arthurzam@gentoo
1 commit: 790edc5af57a17cd15818ccd073a0305daf63c97
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 6 07:07:37 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 07:07:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=790edc5a
7
8 app-admin/awscli: add 1.23.8
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 app-admin/awscli/Manifest | 1 +
13 app-admin/awscli/awscli-1.23.8.ebuild | 71 +++++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 510c78151694..c2c0188f91f3 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,2 +1,3 @@
21 DIST aws-cli-1.23.4.gh.tar.gz 2200991 BLAKE2B b70012a8dd83d46a460977063ad11111a7af728ee7e00f87cf5d559ff3e1a4eb1824580bfc5f869d749d0e75e336eb3a025a77f2b637a7306dc39fadba2382a1 SHA512 e949b4bf171e1ad4364ced1fbb7bec89d83077ee2de745dfc661fe1518476e7e07a29e58877adbe65c46398602af374d9af47ae976e7984b1ed2e59a67bd4f03
22 DIST aws-cli-1.23.7.gh.tar.gz 2201704 BLAKE2B 4c97a7bfc09c794afebd7c770bc1dcc98a8f1458597235bdde0a8236ce49f661cff6f7ab7f4c7eee85160432c5f991b18feab45568c6b5b84aa8eff9b11b0c18 SHA512 24173c1f2905bc005c2f02de69feadf21e78e38b569f9c0dcb72658a2ca1b0c3c621bf4a6d121be2388c40fcfb02423feb301b84d63b25ea384ffe1c0ddd8d37
23 +DIST aws-cli-1.23.8.gh.tar.gz 2201989 BLAKE2B 59651082736c71a08085eab047056d949e908a42ca0f3af15d666cb3b7e5d21d1770622d8121c366489451e51349f19324c36542f24013ede33306989840fe57 SHA512 a58ab507302fb9631983fb31d1b877f5af8856493f04e6c5c18cbb883a60247393e4ce62f1231908fc774d2f74c691086bc8e21af96524e82595489b5cf1d195
24
25 diff --git a/app-admin/awscli/awscli-1.23.8.ebuild b/app-admin/awscli/awscli-1.23.8.ebuild
26 new file mode 100644
27 index 000000000000..acabee851193
28 --- /dev/null
29 +++ b/app-admin/awscli/awscli-1.23.8.ebuild
30 @@ -0,0 +1,71 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit bash-completion-r1 distutils-r1 multiprocessing
40 +
41 +MY_P=aws-cli-${PV}
42 +DESCRIPTION="Universal Command Line Environment for AWS"
43 +HOMEPAGE="
44 + https://github.com/aws/aws-cli/
45 + https://pypi.org/project/awscli/
46 +"
47 +SRC_URI="
48 + https://github.com/aws/aws-cli/archive/${PV}.tar.gz
49 + -> ${MY_P}.gh.tar.gz
50 +"
51 +S=${WORKDIR}/${MY_P}
52 +
53 +LICENSE="Apache-2.0"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm64 ~x86"
56 +
57 +# botocore is x.(y+2).z
58 +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
59 +RDEPEND="
60 + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
61 + dev-python/colorama[${PYTHON_USEDEP}]
62 + dev-python/docutils[${PYTHON_USEDEP}]
63 + dev-python/rsa[${PYTHON_USEDEP}]
64 + >=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
65 + dev-python/pyyaml[${PYTHON_USEDEP}]
66 +"
67 +BDEPEND="
68 + test? (
69 + dev-python/pytest-forked[${PYTHON_USEDEP}]
70 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +distutils_enable_tests pytest
75 +
76 +src_prepare() {
77 + # do not rely on bundled deps in botocore (sic!)
78 + find -name '*.py' -exec sed -i \
79 + -e 's:from botocore[.]vendored import:import:' \
80 + -e 's:from botocore[.]vendored[.]:from :' \
81 + {} + || die
82 + # strip overzealous upper bounds on requirements
83 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
84 + distutils-r1_src_prepare
85 +}
86 +
87 +python_test() {
88 + # integration tests require AWS credentials and Internet access
89 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
90 +}
91 +
92 +python_install_all() {
93 + newbashcomp bin/aws_bash_completer aws
94 +
95 + insinto /usr/share/zsh/site-functions
96 + newins bin/aws_zsh_completer.sh _aws
97 +
98 + distutils-r1_python_install_all
99 +
100 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
101 +}