1 |
commit: 7c43c09158c8633d6d6b94d6ed3c29ca2d899c64 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 04:49:17 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 04:49:17 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c43c091 |
7 |
|
8 |
app-admin/awscli: Bump to 1.27.94 |
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.94.ebuild | 80 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest |
17 |
index 63df6620cc45..6c5a4753a2b3 100644 |
18 |
--- a/app-admin/awscli/Manifest |
19 |
+++ b/app-admin/awscli/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST aws-cli-1.27.84.gh.tar.gz 2378573 BLAKE2B b85d7eeb22b0a2a9264b49a27f2e3d3da9d35dbc44de205521c39522fcec31948ef8b67dfc3ce919b772ba85fa59cfc5a4d69e3c67aadd9cbb029da883ad699e SHA512 1d31d1b800b0795a8473af0dc334feb69f62d2fd8fcb88e0e4e7e4068435f6f37792d2c9382ec1b0c6b074d5eca09142e52f6e36c472145df9d57db2cc4ee078 |
22 |
DIST aws-cli-1.27.89.gh.tar.gz 2382599 BLAKE2B 3a2dae3cc1928e149dd605de1e9a350989e1cf4f813dc14466ba40c0a2747e69b6a8c5716d48f2526920798f0d341dcaa7ec0c2fd95af1b5decd3830814a243b SHA512 9a90c933e5ae3f25271ec369607cb6c44adf96dc9d324205714c9790b6744d7f2c8e4c6b901d4bb4f58b6871c315e0543b3f846cf530e7f95ed31d196f8c3326 |
23 |
DIST aws-cli-1.27.93.gh.tar.gz 2385084 BLAKE2B 18dc59339303b9f32e297ca6a37c5d2a9466a2ac2b2f8795baeb686465dfe561ecb5abb29c38d37f32f44408b9ff1e083c330fbe23a5bf3c19a05033993dc533 SHA512 ce979f35966f2c48d8bf74ed95d27e5d6de9e33990bc01556bba660fd5692dd3751002d1dafbba11121e768a21d97130d9e76d309640ade5377193ba79ba1628 |
24 |
+DIST aws-cli-1.27.94.gh.tar.gz 2385480 BLAKE2B 8712056c53d704e368f81d38779201d0ef28d0b633ac4a877957b5d6338a6daf45b5408dcf0bee3f6c48a0b10af625bfee835f63e837814b42ec3a57745e4d61 SHA512 48dc09f0af71eb9b9d93ffd2c008511e2379f2a47d4913c6c4296804d3ec3c30a1811564c017388329cac9261b1c3021fadc60771ca9d0952982401f5e4f7c59 |
25 |
|
26 |
diff --git a/app-admin/awscli/awscli-1.27.94.ebuild b/app-admin/awscli/awscli-1.27.94.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..62c19f3a63fb |
29 |
--- /dev/null |
30 |
+++ b/app-admin/awscli/awscli-1.27.94.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 |
+} |