From a2b29862e0568964f8e83379b2c3e61d4f4f9eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 17 Oct 2024 04:09:00 +0200 Subject: [PATCH] dev-python/botocore: Bump to 1.35.42 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/botocore/Manifest | 1 + dev-python/botocore/botocore-1.35.42.ebuild | 67 +++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 dev-python/botocore/botocore-1.35.42.ebuild diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 6548b93d60f5e..f7eae0a9b8173 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,4 @@ DIST botocore-1.35.34.gh.tar.gz 13432167 BLAKE2B b39c70faa7312fecc748286162c3b3f DIST botocore-1.35.39.gh.tar.gz 13458607 BLAKE2B 631b16d9a4acf1a2c594318f20fb9755aebb5f4b390388e1c4348874948b08a8ae3b571378383fee55d9228983f89f334d208fedd2fbe3e233d9b546490ac204 SHA512 642e5c82c22c0186addcd527985132790a046f7388ab2d0fb5219476d610a65bec2d7a6e3b0123328601f91f570ae4050449b58d0ec61f5e4291abbd7407d12e DIST botocore-1.35.40.gh.tar.gz 13462072 BLAKE2B aa15665a9948d5ce5e0f75fcad10cc25ce3958f67f3cf7b2316b69ded1d2a6425fee763d7aa041e4a5c4b45a614c29a942aa473335f4a79908f7d466fd2c2fc2 SHA512 13990a523dfb1e703afc9cb1cc2a31c7fece980f38e587522460f37b98abcbe333c54e4a5522b5a0f45b87e355bf57bb66abaac74a9189fb77cd648535315da3 DIST botocore-1.35.41.gh.tar.gz 13470971 BLAKE2B 3db153b5317be2389e85d547c995b8b7f05d30d4effe2f46bc78b310fe92f010520b9e0ef50aafb6abe65cadfa04cf07c17074c17eb9640e85e85518dd26bd2f SHA512 05feaa0e24d25ff64cffe5d41be4bec8f88b5fcd3bd2e51406a5bf012c39e6c7c000f6c1526fb66004548cc5ab8d47753147043935db7c976fcae6a06789b349 +DIST botocore-1.35.42.gh.tar.gz 13471109 BLAKE2B 00845a687b9df256b458af452a0fa23911dea55d3f1630c663e176be0628622ed33c3e31b6004ca23ce5eeafd36bc62ab8ccf57a44d607669a15ef879f0c6059 SHA512 a2575d8f913aef010eee3f90f96cffa5232881b5c2ec2433b2dfc0834d54f8be237f2e83e853e1264816f567878315da8a412cdba8c50582ef9c44b0a3850200 diff --git a/dev-python/botocore/botocore-1.35.42.ebuild b/dev-python/botocore/botocore-1.35.42.ebuild new file mode 100644 index 0000000000000..0f88c5cbe9f33 --- /dev/null +++ b/dev-python/botocore/botocore-1.35.42.ebuild @@ -0,0 +1,67 @@ +# 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..13} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + =dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +}