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: Mon, 21 Feb 2022 21:36:24
Message-Id: 1645479374.7e4b2dd531e9d4724b70a6cb7fd210313a10ce04.mgorny@gentoo
1 commit: 7e4b2dd531e9d4724b70a6cb7fd210313a10ce04
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 21 21:00:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 21 21:36:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e4b2dd5
7
8 dev-python/botocore: Bump to 1.24.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.24.4.ebuild | 65 ++++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 8167a58a6ab7..d76c4b00b097 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -7,3 +7,4 @@ DIST botocore-1.24.0.tar.gz 8767222 BLAKE2B 9cdcb7677544230f006783d5a666c39c0ec2
21 DIST botocore-1.24.1.tar.gz 8768807 BLAKE2B 649633afa85cab9fb248ed9907e2ea3e57aae7325f4f53271669fbb7fa3f6932ce693878905bfe09e1dd1102a05e4be9dec58f9d3f53778a759c5afd85be6e32 SHA512 192113e6d072897d6eead85d31f44ee3051ab4610718cbb7b49bfc1e1b884fda9b9f793445275d6ecd678fea12b789fa137c41d1effcafd2ab50cbce81a57927
22 DIST botocore-1.24.2.tar.gz 8770474 BLAKE2B ed0f5920ae29bc5d51ca5d304f3cc13feb3ca45667d397f77e982d283f1b5551eccdbf41c0e274f56c59cca3398e47c6790d97374f189d4a9411107b0fd7490c SHA512 93811544f756419d6a0a9f49dc836e8c580c7c8ab49f90a541f2f8a24203959976a974056a0953f4d137a19254059e25c356843fb5df91a6d752d23c004f0c34
23 DIST botocore-1.24.3.tar.gz 8770454 BLAKE2B 35c77a5a65a75844594673d3a1af23b087cf88ed7c61177a3f422d4261f907c9ccd1b3beb9eb6f67dcc23084b27078d49e34102ebaa2b868da8b19b1c6e677b4 SHA512 313a1a94b985641257b3ee6b7dbfab88fd28efbfcec2cee6e5826ee6e65b174892c9ad9afa2b46caa4b262feb1e731823875d8981c6bd092f5f423ad4cac9430
24 +DIST botocore-1.24.4.tar.gz 8775103 BLAKE2B c23256daab72fd60dbc9c3cb665816970bb168d6e63e0d53bc16dbda6cdeec30a87a864a6a3107f104c3e9d7aabdd1bbe5e43105a8fccad606cf5ac250282738 SHA512 73a717b454ce715446e75852b37207691118106e45fd0484101527adbb7e9062d78b200bb650e183bb1a40c0a4d9b0e1c9cc8621e5b5c2d9e7a5de6d46c34297
25
26 diff --git a/dev-python/botocore/botocore-1.24.4.ebuild b/dev-python/botocore/botocore-1.24.4.ebuild
27 new file mode 100644
28 index 000000000000..79a1cd5da0e2
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.24.4.ebuild
31 @@ -0,0 +1,65 @@
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 +inherit distutils-r1
40 +
41 +DESCRIPTION="Low-level, data-driven core of boto 3"
42 +HOMEPAGE="https://github.com/boto/botocore"
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +
46 +if [[ "${PV}" == "9999" ]]; then
47 + EGIT_REPO_URI="https://github.com/boto/botocore"
48 + inherit git-r3
49 +else
50 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
51 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
52 +fi
53 +
54 +RDEPEND="
55 + dev-python/six[${PYTHON_USEDEP}]
56 + dev-python/jmespath[${PYTHON_USEDEP}]
57 + dev-python/python-dateutil[${PYTHON_USEDEP}]
58 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
59 +"
60 +BDEPEND="
61 + test? (
62 + dev-python/jsonschema[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
68 +)
69 +
70 +distutils_enable_sphinx docs/source \
71 + 'dev-python/guzzle_sphinx_theme'
72 +distutils_enable_tests pytest
73 +
74 +src_prepare() {
75 + # unpin deps
76 + sed -i -e "s:>=.*':':" setup.py || die
77 +
78 + # unbundle deps
79 + rm -r botocore/vendored || die
80 + find -name '*.py' -exec sed -i \
81 + -e 's:from botocore[.]vendored import:import:' \
82 + -e 's:from botocore[.]vendored[.]:from :' \
83 + {} + || die
84 +
85 + distutils-r1_src_prepare
86 +}
87 +
88 +python_test() {
89 + local EPYTEST_DESELECT=(
90 + # rely on bundled six
91 + tests/functional/test_six_imports.py::test_no_bare_six_imports
92 + tests/functional/test_six_threading.py::test_six_thread_safety
93 + )
94 +
95 + epytest tests/{functional,unit}
96 +}