Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/botocore/
Date: Sat, 30 Apr 2022 07:35:15
Message-Id: 1651304095.b7a0a5f73d3993bff6540ea42bb771c1c10eb4d5.mgorny@gentoo
1 commit: b7a0a5f73d3993bff6540ea42bb771c1c10eb4d5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 30 06:56:22 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 30 07:34:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7a0a5f7
7
8 dev-python/botocore: Bump to 1.25.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/botocore/Manifest | 1 +
13 dev-python/botocore/botocore-1.25.4.ebuild | 71 ++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index dc02e1b8372e..a940ab9d2b05 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -4,3 +4,4 @@ DIST botocore-1.25.0.tar.gz 8925642 BLAKE2B 7f7b89e59801564284cd5e22958bb590aeb8
21 DIST botocore-1.25.1.tar.gz 8931771 BLAKE2B 6d2ba3c564104e8463ce588a0f9de47d4ecb7397ae03ddd4698b38f18617ab225676925d142ae0805467f860410addfbefbf6eed521d5142b994274c3bde7a06 SHA512 52dff81c0f7064aa1edc15aebf3e326c0b4ba1dc87667c8da6f487b1caa03a5ba3247253994139dab7d40873197d88f94e8545ffc3e2d51f26c14de27b5d6460
22 DIST botocore-1.25.2.tar.gz 8947291 BLAKE2B fedf6c61ac2bc43ae6a60f7afb717d319ffd3baf4d6c5849a11279e96901e4968141b916c8d3c46ff007942ffe25fc85e7c8ef5176331e6537446cf349edc52f SHA512 5660e1fc96575dfa7d8c177192783f6edf5689176f6e3ac8c9ec5c85debe7a124297e1e61af5e1a35785346e40deba1ef7a2d8eac52902cda2cffb0327dcb701
23 DIST botocore-1.25.3.tar.gz 8949001 BLAKE2B 5c59bbf4f5189de36093881f4b702027484f916664f8360ed90a301a9db407e44c41f69feb118a54e2f35025711e131f69bae1a032cbf7d3eb339b1cd0bc85a4 SHA512 27e2853e938139e670f1155b64b9e233675316ea11aa2eb6e8dc74dc1b50b75d909811b2a7d470a6933f5263bab10d8aa9108eddd0c501ad974dbb1bc2ff741e
24 +DIST botocore-1.25.4.tar.gz 8955210 BLAKE2B 50880e9d7f57e4f3b8662625a64e9470eaf8a984fdbcc34239bfe604544ccd3ac62e953d7be4e1b486fab4ad0d571361ffc9fdc43cb860cd37a95c33d7b824b2 SHA512 a04e03271d217ab1ef5488dcfedda2904b8e628dae969c74e284d004ae72f18d9734d3f7cf775235c8384b30f4d0fbfda7c0e5dcd687039ddb7b339330e63317
25
26 diff --git a/dev-python/botocore/botocore-1.25.4.ebuild b/dev-python/botocore/botocore-1.25.4.ebuild
27 new file mode 100644
28 index 000000000000..759ccf657074
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.25.4.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +inherit distutils-r1 multiprocessing
41 +
42 +DESCRIPTION="Low-level, data-driven core of boto 3"
43 +HOMEPAGE="
44 + https://github.com/boto/botocore/
45 + https://pypi.org/project/botocore/
46 +"
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +
50 +if [[ "${PV}" == "9999" ]]; then
51 + EGIT_REPO_URI="https://github.com/boto/botocore"
52 + inherit git-r3
53 +else
54 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
55 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
56 +fi
57 +
58 +RDEPEND="
59 + dev-python/six[${PYTHON_USEDEP}]
60 + <dev-python/jmespath-2[${PYTHON_USEDEP}]
61 + dev-python/python-dateutil[${PYTHON_USEDEP}]
62 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
63 +"
64 +BDEPEND="
65 + test? (
66 + dev-python/jsonschema[${PYTHON_USEDEP}]
67 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
73 +)
74 +
75 +distutils_enable_sphinx docs/source \
76 + 'dev-python/guzzle_sphinx_theme'
77 +distutils_enable_tests pytest
78 +
79 +src_prepare() {
80 + # unpin deps
81 + sed -i -e "s:>=.*':':" setup.py || die
82 +
83 + # unbundle deps
84 + rm -r botocore/vendored || die
85 + find -name '*.py' -exec sed -i \
86 + -e 's:from botocore[.]vendored import:import:' \
87 + -e 's:from botocore[.]vendored[.]:from :' \
88 + {} + || die
89 +
90 + distutils-r1_src_prepare
91 +}
92 +
93 +python_test() {
94 + local EPYTEST_DESELECT=(
95 + # rely on bundled six
96 + tests/functional/test_six_imports.py::test_no_bare_six_imports
97 + tests/functional/test_six_threading.py::test_six_thread_safety
98 + )
99 +
100 + epytest tests/{functional,unit} \
101 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
102 +}