commit: 94235a175b807038f696a6ce5fd6ac145a3ba390
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 20 05:41:45 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 20 05:41:45 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94235a17
app-admin/awscli: Bump to 1.32.23
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
app-admin/awscli/Manifest | 1 +
app-admin/awscli/awscli-1.32.23.ebuild | 89 ++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 0977a7f7ae37..8d4dc4ff3a56 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -5,3 +5,4 @@ DIST aws-cli-1.32.19.gh.tar.gz 2626167 BLAKE2B
edab59c82b40fd70d021529c211f1377d
DIST aws-cli-1.32.20.gh.tar.gz 2627246 BLAKE2B
9aac8aea2150ba3f1b32837aa643e040baaee9ce9020169eac73119580a95a4866af8935a6cdd887c94780615b02e79cf8ff98c4b9a59db4269cc4b34e50851a
SHA512
9bc259de53ab0d3d21f5d3343eeab37a9fca85f1eb6fd6d2133802ce5ef0563e774ae500374697a82d5adfa543c1007ad095482ddbbbc6261deb70af782643ee
DIST aws-cli-1.32.21.gh.tar.gz 2627500 BLAKE2B
ad90a93eddbea3f8a8d7da003da10ecc181f1bd5341df6176fdadd30c8604b3693951768619d96db7de5e033b0c2a7671aac203b7c13b8916e1baaaae11dd944
SHA512
b83853f0da2bf5628eba0c44b20420a99982897d042fcec2b2c0f268dbba16901bf15ad09ca8311c56bcc21043b9a9a0ae4b37a07cce07b8dfd48fb7c96b1ef3
DIST aws-cli-1.32.22.gh.tar.gz 2627825 BLAKE2B
1ef00983eb9a0fea5611ac6121c70e5a140135ba4f556787b075394c8073d5162ec79b3f942e9060feaf5e710dd5adc4afbdcee0f6dd25a25b93957f61577a1e
SHA512
ec2532a3f59ae755faadf310bd64cdca5318767d1bf491d0e5224747f9d73b363a70a489dad26365666decfea43db29d3eedc5cbd8c018b1747205c5897c8dff
+DIST aws-cli-1.32.23.gh.tar.gz 2627296 BLAKE2B
b85f77efb7e7f9fac19fc342bcef44def80de24ec7ce50157fc06b0db6c3e0726c21ffcd13861d11170745d76e15e8f54d4d3ec030b4dea93d882b31a9aa38b2
SHA512
b566af885a980a74e159bd41ec4dbb94af87a5a43f4c07845c98ce60762bf33f2770c46a290f95102819da7266bb59040fbb4c7d92422c32f6e1a0b7bfa6f5cf
diff --git a/app-admin/awscli/awscli-1.32.23.ebuild
b/app-admin/awscli/awscli-1.32.23.ebuild
new file mode 100644
index 000000000000..18c949df1583
--- /dev/null
+++ b/app-admin/awscli/awscli-1.32.23.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit bash-completion-r1 distutils-r1
+
+MY_P=aws-cli-${PV}
+DESCRIPTION="Universal Command Line Environment for AWS"
+HOMEPAGE="
+ https://github.com/aws/aws-cli/
+ https://pypi.org/project/awscli/
+"
+SRC_URI="
+ https://github.com/aws/aws-cli/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+# botocore is x.(y+2).z
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
+RDEPEND="
+ >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
+ dev-python/colorama[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/rsa[${PYTHON_USEDEP}]
+ >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ !app-admin/awscli-bin
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-forked[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ # do not rely on bundled deps in botocore (sic!)
+ find -name '*.py' -exec sed -i \
+ -e 's:from botocore[.]vendored import:import:' \
+ -e 's:from botocore[.]vendored[.]:from :' \
+ {} + || die
+ # strip overzealous upper bounds on requirements
+ sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local serial_tests=(
+
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
+
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
+
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
+
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
+
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
+
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
+
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
+ tests/unit/customizations/test_sessionmanager.py
+ tests/unit/test_compat.py::TestIgnoreUserSignals
+ tests/unit/test_help.py
+
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
+ )
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ EPYTEST_XDIST= epytest "${serial_tests[@]}"
+
+ local EPYTEST_DESELECT=( "${serial_tests[@]}" )
+ # integration tests require AWS credentials and Internet access
+ epytest tests/{functional,unit}
+}
+
+python_install_all() {
+ newbashcomp bin/aws_bash_completer aws
+
+ insinto /usr/share/zsh/site-functions
+ newins bin/aws_zsh_completer.sh _aws
+
+ distutils-r1_python_install_all
+
+ rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} ||
die
+}