commit: b20afe5833a0238db7f37511e07ceced479a533a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 31 04:00:44 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 31 04:52:21 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b20afe58
app-admin/awscli: Bump to 1.40.26
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
app-admin/awscli/Manifest | 1 +
app-admin/awscli/awscli-1.40.26.ebuild | 93 ++++++++++++++++++++++++++++++++++
2 files changed, 94 insertions(+)
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index c845074cf119..b1eed83f400a 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -4,3 +4,4 @@ DIST aws-cli-1.40.22.gh.tar.gz 2940905 BLAKE2B
c3af79b9fd54c63680c90874362fd8f38
DIST aws-cli-1.40.23.gh.tar.gz 2941377 BLAKE2B
725545873ab3bbb3b04a32608b07cba8234beb82a4f4954175b12a5ed99797352a99715e11dd93f5e428eeb7001927ef3d2a212481dc883ea68c74546a580893
SHA512
5c259784af2ea2b4b6a004a21b32185c25e339eab5d4116c7b5c5908e88e55c774a6d778b342461a7a9d67836391c9920a16ac8ae1ae1ba6e973816e1157172b
DIST aws-cli-1.40.24.gh.tar.gz 2941381 BLAKE2B
295ab5f4ed2cbe8b60162affbf02e6f05742b8eea5e15ba0cab98481ac566cf6cda57727ce58d3f69f3bd3bfdfaf598164feba1931f1510a00313f6e97ecc787
SHA512
fec5b7a09d08e858085c860fee67345587e2fc3604e806290d2cb377e29814d96c1ece843fa3fff0b323f08c5b832362dd7d83a508ff04bdd88b77f40ff01bce
DIST aws-cli-1.40.25.gh.tar.gz 2942509 BLAKE2B
5dc0fabfdcdcb636e00b3a15d705f315fdacdcb7ce07f53149982b53c36e6f7a40ae6bfeab9cb2e23bc7d2adeac6c9877bab0595ff8523e335b01c57aa4c5687
SHA512
5972b78f54a0533687f06307a9a3aa7bd27fead4e34d2d747599bee632c086edc3b338a36709959b7a3bd15ab1898d28cf5d7a72658c786ad54b3544c5d38e39
+DIST aws-cli-1.40.26.gh.tar.gz 2942606 BLAKE2B
c51358e13c22826ebf3cb4aa3e3989440766dc4c8d56417e76469900e0e79bddfecd6cb2b5f0e9b6239eb0faea4a34c3a1e3779f9091aee40a25e4d2d03e35ad
SHA512
182c4062e9b7401356657122a5294f172ddaf8cf9330e30e1df6970730d16659dadc8c939481f8d7a8b98834e0eb2f452c1e11fb201cc248847abbc485f33a10
diff --git a/app-admin/awscli/awscli-1.40.26.ebuild
b/app-admin/awscli/awscli-1.40.26.ebuild
new file mode 100644
index 000000000000..41a65570d103
--- /dev/null
+++ b/app-admin/awscli/awscli-1.40.26.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 shell-completion
+
+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+1), sigh
+BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) - 2)).$(( $(ver_cut 3-) + 1 ))"
+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.13.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ !app-admin/awscli-bin
+"
+BDEPEND="
+ test? (
+ dev-python/packaging[${PYTHON_USEDEP}]
+ 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[@]}"
+
+ # flaky (some ordering?)
+
tests/functional/s3/test_cp_command.py::TestCPCommand::test_multipart_upload_with_checksum_algorithm_crc32
+ )
+ # integration tests require AWS credentials and Internet access
+ epytest tests/{functional,unit}
+}
+
+python_install_all() {
+ newbashcomp bin/aws_bash_completer aws
+ newzshcomp 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
+}