commit:     7d867d3e936e854ccf7d0f439ac11f4d55f161d3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 25 03:58:49 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 25 03:58:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d867d3e

app-admin/awscli: Bump to 1.40.1

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

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

diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest
index 6b7a55080248..07507b21e4dc 100644
--- a/app-admin/awscli/Manifest
+++ b/app-admin/awscli/Manifest
@@ -4,3 +4,4 @@ DIST aws-cli-1.38.37.gh.tar.gz 2920466 BLAKE2B 
bcbe824e4b867fee378e0b9f8ce59604f
 DIST aws-cli-1.38.38.gh.tar.gz 2921253 BLAKE2B 
e976caff4d201d52676743c3be9675be047df1b6466cccfaac9e0687ec0adfcf609d3a7420eb393c0a3d143ed412a6dbf55c4881cd8cc5f998dd93231d8bd54c
 SHA512 
43f98738238484f32c3747af34485708635f333535907be948e6a915b5a53fe7dd295c0c00fd41e74fc92632ac5f8f58cda0c176906eef0d50fe00c7e0e14754
 DIST aws-cli-1.39.0.gh.tar.gz 2921693 BLAKE2B 
38ae292be0ae7fcf663a80a533b532c5a5bdce385ea6fb0b2bf57e037a34160f84bcee2548099a07f20b558f144123b467acaffeeb352048d7c6292d2a76bc01
 SHA512 
5f73ff59c9e472f4945d412c2df53d9abf3812da20e7e6ba6df4a2dfb078c98cd267e71493053bd26dd0a750e818cf45e0e97d2c2e2aa64a9916a96307b35d5a
 DIST aws-cli-1.40.0.gh.tar.gz 2923660 BLAKE2B 
de8d1a8e39ae75235cd87a8d57397c6c4378e29dec3a18d4e09f83db31f0eab967c671dc5060159c55d3de6619f123ef2bac867e2bb8e5952c9eb9cca79c4071
 SHA512 
12e5e25611ed552118cc01495321939242dafaf34eba97911689942f6e08a911f3ccc3b9f885353ce30420a3463ba743fe0d31050f99ab0f0932f3e5d6ace2a3
+DIST aws-cli-1.40.1.gh.tar.gz 2924809 BLAKE2B 
d5326080a9ce628dc5c23bf07ed01ec2539eb5016414c8527610864c560307fa4ed9f21d2e875dfe767e29eab050105c67612226148841fdadd67b0cf9d888d6
 SHA512 
a58bab394cb16eedbc0f7b86a54d0deecd99858d4b8c520bff1a685fddf07cee795539e20b750dc6213f10f7465ea70ed918cb8974f5cc353ff34c4ee0e5b7c5

diff --git a/app-admin/awscli/awscli-1.40.1.ebuild 
b/app-admin/awscli/awscli-1.40.1.ebuild
new file mode 100644
index 000000000000..103c6a1e1819
--- /dev/null
+++ b/app-admin/awscli/awscli-1.40.1.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_{10..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.12.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