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, 28 Dec 2022 08:17:54
Message-Id: 1672215464.565eb8fcef39a83879a4055e2ef9c24adec3edb1.mgorny@gentoo
1 commit: 565eb8fcef39a83879a4055e2ef9c24adec3edb1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 28 07:26:13 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 08:17:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=565eb8fc
7
8 app-admin/awscli: Bump to 1.27.38
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.27.38.ebuild | 80 ++++++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index ebc4128a5e84..b2fd383fa022 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -6,3 +6,4 @@ DIST aws-cli-1.27.33.gh.tar.gz 2330168 BLAKE2B f5edc8494ba8b66c9819dd2b9182ab3bb
21 DIST aws-cli-1.27.34.gh.tar.gz 2330530 BLAKE2B ee58a6cf4b2fa66c308a479222d13bdb1140e61c591c9d0bc452ae823a2d6a6ed14adb72cb6316d21ca26e33476fecf45f1484346924c9db2a4e7120d586babf SHA512 db9deda8021cb30f597f5bf96e0312bf3a0046da82a894663bb79549857b745e3676340997c0eb381e170d89e177d938cc1e93c0371b364bd23533dbdf39a344
22 DIST aws-cli-1.27.36.gh.tar.gz 2332507 BLAKE2B 215356ff11388b5ecc3c71cf6a33b7a9e23449fd88bc4342aeae4660a17b2348f736d646b34eb343a4fc0f4d990d7b39d43de3b21d3b8b4bc1bdfa0f37db2fb6 SHA512 a84bf8c636d39ced6e1e5153e8eedc1db8629cd325236b5c9ab5cd39b59105f9f906822955318bec99062f438ddb118e26e5aa4e50d2e1c2397249b64014288e
23 DIST aws-cli-1.27.37.gh.tar.gz 2332965 BLAKE2B 9c855f02bc63f64e3d9bb706139305a6b3dad523bd2563c9d6ca4b39b340ea242bf8e85ee369ca92d327073d9eb0a4f0e3da59b4016eaa2ce4f48aa083cc9c51 SHA512 3f53d4c15244019d1773486e192bda4ca69a9afe8e32f2fcfd9f56affc3bcc84e15a1aa4b27563f404bc5471b868eabc74c8fb3884deb0372d61a038e101202a
24 +DIST aws-cli-1.27.38.gh.tar.gz 2333077 BLAKE2B 721ebce0e39b90b9ac18552046b62a5263ebec3d6abbe798ccbf28a9ab63dbf17699a8d2eab2d7b620717c56b8b9ff1d8b3316940a21925b3a58bfcbbc65e03b SHA512 3e529a64542fc14f179bdb5cea3b275f1a2d0d9d4df63c118f5d18067a5a69d1c7677fd8ddbb18d45cef8ce5be880fa9f2a2546d8e57475e1f35a2e0ced7b8ec
25
26 diff --git a/app-admin/awscli/awscli-1.27.38.ebuild b/app-admin/awscli/awscli-1.27.38.ebuild
27 new file mode 100644
28 index 000000000000..caea725bbca7
29 --- /dev/null
30 +++ b/app-admin/awscli/awscli-1.27.38.ebuild
31 @@ -0,0 +1,80 @@
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_{10..11} )
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~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.6.0[${PYTHON_USEDEP}]
66 + dev-python/pyyaml[${PYTHON_USEDEP}]
67 + !app-admin/awscli-bin
68 +"
69 +BDEPEND="
70 + test? (
71 + dev-python/pytest-forked[${PYTHON_USEDEP}]
72 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
73 + )
74 +"
75 +
76 +distutils_enable_tests pytest
77 +
78 +src_prepare() {
79 + # do not rely on bundled deps in botocore (sic!)
80 + find -name '*.py' -exec sed -i \
81 + -e 's:from botocore[.]vendored import:import:' \
82 + -e 's:from botocore[.]vendored[.]:from :' \
83 + {} + || die
84 + # strip overzealous upper bounds on requirements
85 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
86 + distutils-r1_src_prepare
87 +}
88 +
89 +python_test() {
90 + local EPYTEST_DESELECT=(
91 + # TODO
92 + tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
93 + tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
94 + tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
95 + tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
96 + )
97 +
98 + # integration tests require AWS credentials and Internet access
99 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
100 +}
101 +
102 +python_install_all() {
103 + newbashcomp bin/aws_bash_completer aws
104 +
105 + insinto /usr/share/zsh/site-functions
106 + newins bin/aws_zsh_completer.sh _aws
107 +
108 + distutils-r1_python_install_all
109 +
110 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
111 +}