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 Feb 2023 04:57:21
Message-Id: 1675227419.aee3c1c4ed4ee962a247697822edb304e3873c85.mgorny@gentoo
1 commit: aee3c1c4ed4ee962a247697822edb304e3873c85
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 04:11:36 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 04:56:59 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aee3c1c4
7
8 app-admin/awscli: Bump to 1.27.61
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.61.ebuild | 80 ++++++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
17 index af1db5dab645..eae08953fd67 100644
18 --- a/app-admin/awscli/Manifest
19 +++ b/app-admin/awscli/Manifest
20 @@ -4,3 +4,4 @@ DIST aws-cli-1.27.57.gh.tar.gz 2359650 BLAKE2B 637674f1726828b43a8135b9f7ff9d1f4
21 DIST aws-cli-1.27.58.gh.tar.gz 2359921 BLAKE2B da3ead9140407faff60384fa7aafbc27a8a86d088e4516599e573b9e968f00d3e292a8ea6a0eb0a80449f1fef3bb62204dad2a788f10ba87a959218d909da77b SHA512 2bc4dfe5058c847510f4f43006191153b23e5efecc51bb010f9b06ba127504ee40c953bcb6e47d921760f1bc6eb87747971a9a3514f781dd4bd76f30ecd7de81
22 DIST aws-cli-1.27.59.gh.tar.gz 2360458 BLAKE2B e60117e41cf95d442db333cf49c146e4ed02247007b8f46228799c5dee8c486aec34b236c9a0a6d152d690ff86c34fd797a6f35227a6e443805cdfe1b1b30f00 SHA512 87b9aebe812415223285c09ab5a36de2b9c0da49775d1162a5b5d7489ad61c16ca5361b721bc9e4ec4ccc09306be24513f42d7263b315d6856be20fdf0779686
23 DIST aws-cli-1.27.60.gh.tar.gz 2361068 BLAKE2B ee5b5b1129bcdfe261d0b7ddbfa905b4c97a799ba7c494cad74bcb3c74dcff39131b908d602a60c023c26cf4c733a52b385c4ad8266c53e5d60d8036c5abd2e6 SHA512 aa14729040d4dcfdbb75936eb29d651c03ea28a3c18f5ad4b9e685899e07f03703f2058d508a16c753df1b1e66af3ff84ec9e31476fc2f969786235ce15ae425
24 +DIST aws-cli-1.27.61.gh.tar.gz 2362178 BLAKE2B 512fd70f5688289b79807e679aded5085af89a14e5724dc70a771fed846060a4ef1265b3ef9d598c24d228649412204cf48d02a2ff840575a8e9a3fc3a2fe12a SHA512 c8b0640fd2aba05617e3ed60d5cfc6749102e16477eaae2e94d5be7750d5bfea14c8020a4dc7bac5c2b2bae2f46f302930b03b6d47a1cf778ae08be761f7274f
25
26 diff --git a/app-admin/awscli/awscli-1.27.61.ebuild b/app-admin/awscli/awscli-1.27.61.ebuild
27 new file mode 100644
28 index 000000000000..62c19f3a63fb
29 --- /dev/null
30 +++ b/app-admin/awscli/awscli-1.27.61.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2023 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 +}