mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
app-admin/awscli: Bump to 2.37.5
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST aws-cli-1.46.0.gh.tar.gz 19210830 BLAKE2B 8cab4c9027561c5c9711296a5da3aad749ee30f14d8fec13da8f880bcc4f8a1fd97c2ed255fe74eb8ee12e9a59dfb2319db113efd047cbf5f89205ecdd6ab933 SHA512 0381958389f580ab6536468343da16582342af38faf3439ac5a29865a6652c3434826df587793fdf07736a6e0c37ae9f8598475be77abe8e93f73e35baff76dc
|
||||
DIST aws-cli-1.46.1.gh.tar.gz 19215038 BLAKE2B 3120c6768b749a85eea847040758f64120d5fba33be786566e178c36ed53d5d81676b8f9d632be7c09e65cc469d71366f897a4cafeb237b8fd2128361e3b4b1d SHA512 d332682464b9cb2cb3f1c0229f2161f8480c01416e637cf243c84388690f6029884eecfaa156fa57f6f9a224127902ec9cb11d5a1a4d313842ee5dd99f52d3be
|
||||
DIST aws-cli-2.37.4.gh.tar.gz 19473894 BLAKE2B ad6cc6bccb8521e6951feece0418dc4976fe088b35f6bb2be41cb82cb8ec85b3dafdedb5545187fa3a045cb29ff9c114d3f39ba7fdfbf22085c8cb8e00f4fc98 SHA512 e9af6b7f12da9f31182487d9e89bd234f817bcdc379cb5ef37467d5e23a07e84b0021fedfcc717c6c031508dad915553e074e2fa1dfd00198d1459d84de75bac
|
||||
DIST aws-cli-2.37.5.gh.tar.gz 19483885 BLAKE2B 8e8553d256339b41a42e796452238a93f0239e5e6d4858c1c206bedfc4f8efd58cd40a64567e57de37523e5894cfca91f864749f9e553b2536a8d71487dbf283 SHA512 0368fa58b68d4e589f261efbb4964bc1e722d9f5d4c4ae8da6379e7fceb04058ca40c14c2598a078e41b146fd562a73ada8934ae8240ff1a919080c88410fcc6
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=standalone
|
||||
PYTHON_COMPAT=( python3_{12..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 ~arm64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/colorama-0.2.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/docutils-0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/ruamel-yaml-0.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/prompt-toolkit-3.0.24[${PYTHON_USEDEP}]
|
||||
>=dev-python/distro-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/awscrt-0.36.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
# bundled dependencies
|
||||
RDEPEND+="
|
||||
>=dev-python/s3transfer-0.18.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
TODO="
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/flit-core[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
EPYTEST_RERUNS=5
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# this package bundles botocore & s3transfer, but they are custom
|
||||
# v2 branches that were never released and are incompatible with
|
||||
# our release versions
|
||||
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[=0-9.]*::' -e 's:==:>=:' pyproject.toml || die
|
||||
# wcwidth isn't used
|
||||
sed -i -e '/wcwidth/d' pyproject.toml || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x TZ=UTC
|
||||
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
tests/functional/autocomplete/test_main.py::test_smoke_test_completer
|
||||
tests/unit/customizations/ec2instanceconnect/test_websocket.py::TestWebsocket::test_connect_with_proxy
|
||||
tests/unit/customizations/ec2instanceconnect/test_websocket.py::TestWebsocket::test_connect_with_proxy_but_no_proxy_env_empty
|
||||
tests/unit/customizations/emr/test_emr_utils.py::TestEMRutils::test_which_with_existing_command
|
||||
tests/unit/customizations/emr/test_emr_utils.py::TestEMRutils::test_which_with_non_existing_command
|
||||
tests/unit/customizations/wizard/test_app.py
|
||||
tests/unit/test_compat.py::TestGetPreferredEncoding::test_getpreferredencoding_with_env_var
|
||||
)
|
||||
|
||||
# Some tests take a lot of memory, so run parallel-safe tests first.
|
||||
local awscli_parallel_tests=(
|
||||
tests/functional/[ac-z]*/
|
||||
tests/unit/
|
||||
)
|
||||
local botocore_parallel_tests=(
|
||||
tests/functional/botocore/*/
|
||||
tests/functional/botocore/test_[cds-z]*.py
|
||||
)
|
||||
#epytest "${botocore_parallel_tests[@]}"
|
||||
epytest "${awscli_parallel_tests[@]}"
|
||||
|
||||
local EPYTEST_IGNORE=(
|
||||
"${botocore_parallel_tests[@]}"
|
||||
"${awscli_parallel_tests[@]}"
|
||||
)
|
||||
EPYTEST_XDIST= epytest tests/functional
|
||||
}
|
||||
|
||||
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