mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
dev-python/botocore: Bump to 1.43.123
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST botocore-1.43.118.gh.tar.gz 17501627 BLAKE2B c61ee279459077f513dbb4b6788cea29871588f98bd43f8c367d42faddc983acd4b9051e1e6b8bd67f0c2d055ac2b9d9255a96f624fb4d5cb39919855f71727b SHA512 29b39120756a96e4ecc3b1de1b30e9aa4252630670c50495228d250355e37e5e04ce415a84228c4d1016128ce882c7576f9d4883f3d765725659af9f1681418a
|
||||
DIST botocore-1.43.123.gh.tar.gz 17574621 BLAKE2B 0f6c8b83f5dd8303349e698721f3825e72126643b2c00a097ba70afafc002f96896d487eaeebd4e4f13f69b8573b2abad2273ff48184cf07b31afc5cadd1a177 SHA512 cc07aa41e174cb63cc9c5e16202069563cdf4b4175a3108886658566daabc97d30069c8f55baa86e58e641ccc1fd24214eca1a6780b60f6be10e7d9f578d79d5
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
# 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_{12..15} )
|
||||
|
||||
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 ~loong ~ppc ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
<dev-python/jmespath-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
>=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_PLUGINS=()
|
||||
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
|
||||
|
||||
# remove bundled certificates
|
||||
# fortunately, they are only used if certifi is not available
|
||||
rm botocore/cacert.pem || 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
|
||||
)
|
||||
|
||||
# The test suite can eat up a lot of memory when running via xdist,
|
||||
# and slow down some tiny tests. Let's just run a safe subset
|
||||
# of tests known to be slow-ish in parallel, and the rest in series.
|
||||
local parallel_tests=(
|
||||
tests/functional/*/
|
||||
tests/functional/test_event_alias.py
|
||||
tests/functional/test_[cds-z]*.py
|
||||
tests/unit/
|
||||
)
|
||||
|
||||
epytest "${parallel_tests[@]}"
|
||||
|
||||
local EPYTEST_IGNORE=( "${parallel_tests[@]}" )
|
||||
EPYTEST_XDIST= epytest tests/functional
|
||||
}
|
||||
Reference in New Issue
Block a user