mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
app-admin/awscli: Bump to 1.45.6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -7,3 +7,4 @@ DIST aws-cli-1.45.2.gh.tar.gz 3129806 BLAKE2B b52f9d17c37b40eae681934e40330ff82e
|
||||
DIST aws-cli-1.45.3.gh.tar.gz 3131309 BLAKE2B 295960fe8666b10d80f0fbcbafcf89624bb69ba4354a8294848b5263277d49886d275c79e44502f58e5d1799fff7ba2bd451e794e9a4b43f3352b598a71cfc14 SHA512 5907dd2121e8e7010a8b32fb842adcce015936184a3dbbb7abf2fcfaf658961a8e6fd06c06a45a8134a989672bee48f17e6736ed3c4720fcf17a49699048c2a6
|
||||
DIST aws-cli-1.45.4.gh.tar.gz 3132334 BLAKE2B 63c34a89301fc4ee954e75a3711b032ecc53ae472e368ff79d672b4e3a24e947d16f5144076071f73aa0d3c2444fef90098d88ca46bf87f90cb8cb5a2396443f SHA512 a1e69e1355fcde099cbf3ee705164c341e76d1ffc00d208fca7f092a285f12c9e72c8d1ff68c5b6e4dca65eeb35429e9a2b69561b4303847a4f9f2d541704c2c
|
||||
DIST aws-cli-1.45.5.gh.tar.gz 3134190 BLAKE2B 09d7733c7b4e8fcff792a35e125278ed0bc0173cb8dae31e25a4a01ddfa917e5d52ba4c7f17ccad6dba1e6b879d78b72c366315156038bc5c5e1d4fb03bed5c8 SHA512 c06e8c64f4b24ef6ab6102b871877c384d63749589b92bf0c6a057170e2f5094bc8aa9035f78aaa2fae3fca2202668dd1311a4fbed7d491a5791821d6432af46
|
||||
DIST aws-cli-1.45.6.gh.tar.gz 3135352 BLAKE2B 040c073cb565ea9969027f0a07002b997f382c43c69e54d34cb3faff22af38447a861c940b35343b55f5718e968c0967983d058e39f1feb5e79fe68fbeaaa323 SHA512 f1568979799b5abb5b7d791150ada6aebdac88e37513fa576c8bdfd5f2cdb5990256cf16b579c0d578d02001302b90fc1e523e509797f047dcfdb7d7f90a9910
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
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+10), sigh
|
||||
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.17.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( pytest-forked )
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user