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: Tue, 28 Feb 2023 05:06:51
Message-Id: 1677560794.4cc0e9e25c865df333888626c8ca2d39e782dc7e.mgorny@gentoo
1 commit: 4cc0e9e25c865df333888626c8ca2d39e782dc7e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 04:29:44 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 05:06:34 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cc0e9e2
7
8 app-admin/awscli: Bump to 1.27.80
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.80.ebuild | 80 ++++++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index 64094936f5ff..61ab0c19c5b3 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -1,2 +1,3 @@
21 DIST aws-cli-1.27.74.gh.tar.gz 2368706 BLAKE2B 3eb9d8c21b9ddfd3a3e4bb53172a46ad69ca71033785bd29fd8b0b0f694c2ed62a4cad998ccd13b07949b86a89f2ca238a63a4553e591ba9066832f51ed87759 SHA512 cf61a3f1dd643bb7d0f81f047c1eeae78a7793532bffa612045273c46ae970b2763156a7679b6e16e65c2f886dec68e54db0169580bb3c37cc08420f874e704c
22 DIST aws-cli-1.27.79.gh.tar.gz 2376690 BLAKE2B 8e55d3607b805ebc5673c682731483f0fd6eb77a6cc972d58ce3219c33f9f2054529df6ab46fc85b39849871580cea03c4d7f490c4386cd5ce9d222ecb3c8eda SHA512 fd8b880b6358c50ed189fac538d91ef88d762b8c382da1b57bb086a316f7ee96fa33206a53f3eae2df98df175929c819b855c7ff5b7e5f84c73ecff88f297c79
23 +DIST aws-cli-1.27.80.gh.tar.gz 2377306 BLAKE2B 3a0e6c66bb9c373456bb05537f20ad339c0987290557c30dbd2e2a8ea127b0f8bfc7028930db712fcbe7461c7bc87dac123c1847da93b675403822f6c02b1d3f SHA512 b94aab2588e8bc0ad007e0392c6eed0642683246b1803007332563495a69deb5da924eda48944e37b674c714cf2e5a45aeddbbedb5d12d51ad8c9c8e76c18ebc
24
25 diff --git a/app-admin/awscli/awscli-1.27.80.ebuild b/app-admin/awscli/awscli-1.27.80.ebuild
26 new file mode 100644
27 index 000000000000..62c19f3a63fb
28 --- /dev/null
29 +++ b/app-admin/awscli/awscli-1.27.80.ebuild
30 @@ -0,0 +1,80 @@
31 +# Copyright 1999-2023 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_{10..11} )
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~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.6.0[${PYTHON_USEDEP}]
65 + dev-python/pyyaml[${PYTHON_USEDEP}]
66 + !app-admin/awscli-bin
67 +"
68 +BDEPEND="
69 + test? (
70 + dev-python/pytest-forked[${PYTHON_USEDEP}]
71 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
72 + )
73 +"
74 +
75 +distutils_enable_tests pytest
76 +
77 +src_prepare() {
78 + # do not rely on bundled deps in botocore (sic!)
79 + find -name '*.py' -exec sed -i \
80 + -e 's:from botocore[.]vendored import:import:' \
81 + -e 's:from botocore[.]vendored[.]:from :' \
82 + {} + || die
83 + # strip overzealous upper bounds on requirements
84 + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
85 + distutils-r1_src_prepare
86 +}
87 +
88 +python_test() {
89 + local EPYTEST_DESELECT=(
90 + # TODO
91 + tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
92 + tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
93 + tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
94 + tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
95 + )
96 +
97 + # integration tests require AWS credentials and Internet access
98 + epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
99 +}
100 +
101 +python_install_all() {
102 + newbashcomp bin/aws_bash_completer aws
103 +
104 + insinto /usr/share/zsh/site-functions
105 + newins bin/aws_zsh_completer.sh _aws
106 +
107 + distutils-r1_python_install_all
108 +
109 + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
110 +}