From 922318f7db882025d3af49d006f12fcc7f2ef1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 28 Jun 2025 06:26:58 +0200 Subject: [PATCH] app-admin/awscli: Bump to 1.40.45 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-admin/awscli/Manifest | 1 + app-admin/awscli/awscli-1.40.45.ebuild | 93 ++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 app-admin/awscli/awscli-1.40.45.ebuild diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index 4fe11b9b8cd67..b51cee4c4139c 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -10,3 +10,4 @@ DIST aws-cli-1.40.41.gh.tar.gz 2962210 BLAKE2B 4447e7d4564ce1fb1f5306bb6fc86e907 DIST aws-cli-1.40.42.gh.tar.gz 2964125 BLAKE2B 08d21bc5c84ad35ea4e6d30abab53d626338cb4537f9a118993c0d2422990942845b619055ae3ba5ee4bd6edd76366003abc511d97d178b804e0441f9d070fa5 SHA512 8d5a532f7517268c8d2796c88047aeaa294abc69c468fb5086d007e7962966cfd268cdf611701f81530c540c3fbe35db678369f5405186185adfa463708f2c64 DIST aws-cli-1.40.43.gh.tar.gz 2965711 BLAKE2B d2765c82bfc7465cbde6999bddb124e7bf5c6581a03850b33be25d413e567972fdea46a702ebe6462026f31359704a6a33884b57abc37561821ba30253074110 SHA512 5fdfa13394fa04c9ecd40ada6137b172cc41caac0c07b0e64411f2f36903b3fa01e92995e83a419ee8d8b8ed8d36d8994d42e9937d164905f13c194f473249dd DIST aws-cli-1.40.44.gh.tar.gz 2967299 BLAKE2B 6466074ccae0dfe352d4124ed14d26b26a967d5dabd892e72e62b3431b9192a241eb54eb2f927aa62855bcb62263dc7219b9a6fb502c37f4924e849fa048a602 SHA512 7c2050ea3d3899ef1e8116fe439d47cd36d66e9cf09f3166bea6878cd35c3a46dc0ec3bbf901b1e27fe4beb78eab8bb9419c7d36a6bfe0c8637626766fb6c9dd +DIST aws-cli-1.40.45.gh.tar.gz 2967475 BLAKE2B 28092036db51577455f041f709d061ee10c63c79be014dfbf64104d6d39e1c5434c7a21e13a4330d004719ac5f454d4aca43a054c667e91ccc08287ad84bcc40 SHA512 271ffcb550c5d514f6a658a5e320d66deda2f5b7b0b814a0d617aabb8c0db45aca3e9459022f4088fa4f3c73701a006e7621baf3acaeb0f058cad8d932b7bbe4 diff --git a/app-admin/awscli/awscli-1.40.45.ebuild b/app-admin/awscli/awscli-1.40.45.ebuild new file mode 100644 index 0000000000000..a5edb5c04bb24 --- /dev/null +++ b/app-admin/awscli/awscli-1.40.45.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_PLUGINS=() +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 + ) + 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 +}