commit:     d180ca9a4fa065db9baa9f815dbba08fbd31aa3f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 20 03:59:12 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 20 05:02:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d180ca9a

app-admin/awscli: Bump to 1.40.39

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-admin/awscli/Manifest              |  1 +
 app-admin/awscli/awscli-1.40.39.ebuild | 93 ++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index d617e54ba949..89f23c34c4bf 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -4,3 +4,4 @@ DIST aws-cli-1.40.35.gh.tar.gz 2948794 BLAKE2B 
e49291ca7ae40fef32e596601f02f6edf
 DIST aws-cli-1.40.36.gh.tar.gz 2949603 BLAKE2B 
2d28cae3f5b897f3848a07087647024558589b34ad6948acbc47b7c011b97608d6d6a5e4bf2b5ef6be852d2b9822a148c6d5858e7592262ddbef7fe8709013d0
 SHA512 
e2be38fb6f522c422872446f5abe7e8e368a50190102262144e0375f1e7bd888b5d4d101ba7909c70170a840a5194e424593da3479602b2ac00b2cd2e4b75dee
 DIST aws-cli-1.40.37.gh.tar.gz 2951074 BLAKE2B 
1c3947528c8fd2d2d6db7221c6cdb650f401608cdc0d9f230413c62ae11224d7584cd2a5f32879b4e0649892e713b2b78dff44bfc9db6ad3e36378d9c9f82fa5
 SHA512 
0dfd1d7242709ea5ce2ae28d38e1d616659ad120861d54d75247dd9c595e4855ac0e008e7617a96204d41c3d12424baf634322dfb7ce71f914b809da73c1814a
 DIST aws-cli-1.40.38.gh.tar.gz 2951069 BLAKE2B 
d6e94b9adb54ba21e36a47fdf47f742e30c5d58d8b62273d5a16ff866f71c10e48120a734c4866e0f5149e7b62b4e5577884261f09acc67ccb47223aa722e7be
 SHA512 
729c2900a3f30707b71c8e8b8708a9476528327f88e3a53c429e510711ced8e23f619fe695395d4eb4c1cb118a2b1c7250d1f75f0b7e75dfca1ecf546065a5e5
+DIST aws-cli-1.40.39.gh.tar.gz 2961319 BLAKE2B 
b90e2f3c19c0fa870b5ec0a670ab54ca6d8964a553a1dbbf6cd68be6b458ba4e0b05fa7c01dbe7b0fbbe2c13df9254752e4c1e351c0c1d9cd395abf42096912b
 SHA512 
fe97d8d8d4f91717060dd2166260289a4690f846c08fe1799303f7602e1770d19b9b2c5b78a1448136ce4decb484af8cb0a63687cff51c06aaa361871bc7a435

diff --git a/app-admin/awscli/awscli-1.40.39.ebuild 
b/app-admin/awscli/awscli-1.40.39.ebuild
new file mode 100644
index 000000000000..41a65570d103
--- /dev/null
+++ b/app-admin/awscli/awscli-1.40.39.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
+}

Reply via email to