summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-04 09:22:10 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-04 10:19:36 +0200
commit7ef9962783e7d0989fb263bbdfda6272ebb34858 (patch)
treedb83d93ebad630a04bc46a43f0112e9fb5d05da5
parentdev-libs/libbpf: forward ~loong (diff)
downloadgentoo-7ef9962783e7d0989fb263bbdfda6272ebb34858.tar.gz
gentoo-7ef9962783e7d0989fb263bbdfda6272ebb34858.tar.bz2
gentoo-7ef9962783e7d0989fb263bbdfda6272ebb34858.zip
dev-python/botocore: Bump to 1.25.6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/botocore/Manifest1
-rw-r--r--dev-python/botocore/botocore-1.25.6.ebuild70
-rw-r--r--dev-python/botocore/botocore-9999.ebuild3
3 files changed, 72 insertions, 2 deletions
diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
index 7087459ee532..b2965ecead93 100644
--- a/dev-python/botocore/Manifest
+++ b/dev-python/botocore/Manifest
@@ -6,3 +6,4 @@ DIST botocore-1.25.2.tar.gz 8947291 BLAKE2B fedf6c61ac2bc43ae6a60f7afb717d319ffd
DIST botocore-1.25.3.tar.gz 8949001 BLAKE2B 5c59bbf4f5189de36093881f4b702027484f916664f8360ed90a301a9db407e44c41f69feb118a54e2f35025711e131f69bae1a032cbf7d3eb339b1cd0bc85a4 SHA512 27e2853e938139e670f1155b64b9e233675316ea11aa2eb6e8dc74dc1b50b75d909811b2a7d470a6933f5263bab10d8aa9108eddd0c501ad974dbb1bc2ff741e
DIST botocore-1.25.4.tar.gz 8955210 BLAKE2B 50880e9d7f57e4f3b8662625a64e9470eaf8a984fdbcc34239bfe604544ccd3ac62e953d7be4e1b486fab4ad0d571361ffc9fdc43cb860cd37a95c33d7b824b2 SHA512 a04e03271d217ab1ef5488dcfedda2904b8e628dae969c74e284d004ae72f18d9734d3f7cf775235c8384b30f4d0fbfda7c0e5dcd687039ddb7b339330e63317
DIST botocore-1.25.5.tar.gz 8956539 BLAKE2B d4e3206a44fffe0d0f4ac1ebf493cd9613ad8b0ae4524255c290c8fe2d67b74e45eaff5a8b5004cc747fef9c8b27da9ef5047145c44787d348b03495a1277f31 SHA512 594fbf14dcf9a64ffe3111255e02b6b60fef856e360228b6466b96945e581f17d0b035f4df0cec14525b9cb54ca583d0aa5a0c5039595052f4bcedd96351c91e
+DIST botocore-1.25.6.tar.gz 8960023 BLAKE2B fabcd513c89b30ce2635b71722649e15fc3bc4c44c40de70569fa1c228d0c17573e10ceedb5a3418fd13b5871bdb15a4a951842e439d8a3c3d08030e666b4328 SHA512 0dc9c0230edcee8e64954fde4ed1d25b7e84375e29cfcaacadd7182898e0b51b93454a62240da3b79c9919af18ff6f42b73a7dac5944476397e8eccfd9857fff
diff --git a/dev-python/botocore/botocore-1.25.6.ebuild b/dev-python/botocore/botocore-1.25.6.ebuild
new file mode 100644
index 000000000000..a1a5a4e1ea37
--- /dev/null
+++ b/dev-python/botocore/botocore-1.25.6.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1 multiprocessing
+
+DESCRIPTION="Low-level, data-driven core of boto 3"
+HOMEPAGE="
+ https://github.com/boto/botocore/
+ https://pypi.org/project/botocore/
+"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+if [[ "${PV}" == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/boto/botocore"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ <dev-python/jmespath-2[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
+)
+
+distutils_enable_sphinx docs/source \
+ 'dev-python/guzzle_sphinx_theme'
+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
+ )
+
+ epytest tests/{functional,unit} -n "$(makeopts_jobs)"
+}
diff --git a/dev-python/botocore/botocore-9999.ebuild b/dev-python/botocore/botocore-9999.ebuild
index 759ccf657074..a1a5a4e1ea37 100644
--- a/dev-python/botocore/botocore-9999.ebuild
+++ b/dev-python/botocore/botocore-9999.ebuild
@@ -66,6 +66,5 @@ python_test() {
tests/functional/test_six_threading.py::test_six_thread_safety
)
- epytest tests/{functional,unit} \
- -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
+ epytest tests/{functional,unit} -n "$(makeopts_jobs)"
}