diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-02-24 06:33:55 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-02-24 09:49:06 +0100 |
commit | 90857e13c75774b339081ca407a8f4b64cccfd52 (patch) | |
tree | 76fb6ed76a6b98ffd057b31de9115dda75838abd /app-admin | |
parent | dev-python/boto3: Bump to 1.34.49 (diff) | |
download | gentoo-90857e13c75774b339081ca407a8f4b64cccfd52.tar.gz gentoo-90857e13c75774b339081ca407a8f4b64cccfd52.tar.bz2 gentoo-90857e13c75774b339081ca407a8f4b64cccfd52.zip |
app-admin/awscli: Bump to 1.32.49
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/awscli/Manifest | 1 | ||||
-rw-r--r-- | app-admin/awscli/awscli-1.32.49.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index f8f71bf8bea2..21ec64728db1 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -5,3 +5,4 @@ DIST aws-cli-1.32.45.gh.tar.gz 2650722 BLAKE2B 0c797216e8005b03a0e017d1aec4bc56a DIST aws-cli-1.32.46.gh.tar.gz 2652291 BLAKE2B 42e85e231c9cde0a0e3ff1083b86230d9c0db70f7a19aabe063251f58e7f18965615e4564fb80ff3319a489b2a53eff47d7c1ce1e2fa8a33affb909f3720cba5 SHA512 f450c2bbeaa8d5dae59a15ee0043451c82df620724787b3365a6680d23158c575083f3b6c8d2b167d5c2b039ecc3484b308d379a6947c84b4756b40aca31fe09 DIST aws-cli-1.32.47.gh.tar.gz 2652468 BLAKE2B 8b4e2ad36d68047f1fbc11d78030da059e63c2b537b462673845a45ec2bb8a8e44040656e059ba32d32f9dfc809829a6eaa74ab3c626176ed480fd220c1c2ca8 SHA512 6ae055d80a15423de152938892170948d61c7f589c83be585ee636239e07c585522ec18bb041d52b3af11c67465a4da4542d04eeb6fedabd14fc1a1601f8dc0b DIST aws-cli-1.32.48.gh.tar.gz 2652685 BLAKE2B b99a94f18085303f39b206d14d13dee27e8b11a53244ca44cfc3b950deeac7b3b2efd71721622648e4408ef58632917cad025ffe6d00a3f342cd44663e353f52 SHA512 9897bd18dee931560c751cf70335a865659bec6d1f8bacec098a8cdf4145077f22f64d4138765bc87db3098fb099f1abeab8df63a06d6ef086e7aa4716e2827f +DIST aws-cli-1.32.49.gh.tar.gz 2654398 BLAKE2B fc2e9052b777e1e8bac60621993b55aa01bb0c0e66ad24008498d44b68ecffeaa903d8afd6e361768031c3954e061ed89e24d85fea23454fad8f6d7de4521cfa SHA512 4a5c1d9e92b7e615adb1d6afca0a01a62e55ac4ffd50b9d7634faf0a4e6108c035e78f9f60824bc9a53505ed4a376757ec4c9fc35fb26a2ba8850f7a206919bf diff --git a/app-admin/awscli/awscli-1.32.49.ebuild b/app-admin/awscli/awscli-1.32.49.ebuild new file mode 100644 index 000000000000..4a677affdbc4 --- /dev/null +++ b/app-admin/awscli/awscli-1.32.49.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit bash-completion-r1 distutils-r1 + +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 +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.10.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[@]}" ) + # integration tests require AWS credentials and Internet access + epytest tests/{functional,unit} +} + +python_install_all() { + newbashcomp bin/aws_bash_completer aws + + insinto /usr/share/zsh/site-functions + newins 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 +} |