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: Tue, 07 Jun 2022 06:55:05
Message-Id: 1654584838.0bd4dcfdce255eb4a7ff249e06bce257592501fe.mgorny@gentoo
1 commit: 0bd4dcfdce255eb4a7ff249e06bce257592501fe
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 7 05:20:27 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 7 06:53:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bd4dcfd
7
8 dev-python/botocore: Bump to 1.27.3
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.27.3.ebuild | 70 ++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 45afdb0bec33..9d32ebdf6f34 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -1,2 +1,3 @@
21 DIST botocore-1.26.10.tar.gz 9008316 BLAKE2B a05078ec5732015cbd8ea4da2d2d82e28f4241b7c3164f3410ae396a19f79c116f7a9059a3361e99eacc952f860a516b187375dbf64ee5e4e5648e8c3b0f95a5 SHA512 b12e9002dc8e0912a9681938f343b51d628f0b2798693dc81636fe7ede01d006d5bc8a901f92edf10a88d97c3c6311aaf97206a6f55070e645747536fe39b144
22 DIST botocore-1.27.2.tar.gz 9026413 BLAKE2B 013724df76fb87c8e7731401d09774bec303aced7c3a01bb97935865f34193d1f313d49f32c1f6b7addab9b24384f26caca44b03ba0e77014821dc7cab5142ef SHA512 85045c13fa935b017f66edc132d2a31da2ecbe0c7bfcab369cb1d5f76d8a1401d303ab7d3e2ce95d53e9a59ea81dbf5380c1106169d84f40b21cbb926e35abb9
23 +DIST botocore-1.27.3.tar.gz 9078424 BLAKE2B 62414c2474ec44b3385c589793fd0c54984d2302239b78295bfbdc3739160bbae5bb910207dc7252b7adb96d6cd69add7413000399bcb20b671e3fbdad860c02 SHA512 47ed3e68c10e4175cdbe2122dab9319b9059f9457e27258a142224311042c5ae4692d293d29dc9b4855e65eea561fb7b703f7ddc663064413144aaf72fda33a5
24
25 diff --git a/dev-python/botocore/botocore-1.27.3.ebuild b/dev-python/botocore/botocore-1.27.3.ebuild
26 new file mode 100644
27 index 000000000000..2fb86c59b25e
28 --- /dev/null
29 +++ b/dev-python/botocore/botocore-1.27.3.ebuild
30 @@ -0,0 +1,70 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit distutils-r1 multiprocessing
40 +
41 +DESCRIPTION="Low-level, data-driven core of boto 3"
42 +HOMEPAGE="
43 + https://github.com/boto/botocore/
44 + https://pypi.org/project/botocore/
45 +"
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +
49 +if [[ "${PV}" == "9999" ]]; then
50 + EGIT_REPO_URI="https://github.com/boto/botocore"
51 + inherit git-r3
52 +else
53 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
54 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
55 +fi
56 +
57 +RDEPEND="
58 + dev-python/six[${PYTHON_USEDEP}]
59 + <dev-python/jmespath-2[${PYTHON_USEDEP}]
60 + dev-python/python-dateutil[${PYTHON_USEDEP}]
61 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
62 +"
63 +BDEPEND="
64 + test? (
65 + dev-python/jsonschema[${PYTHON_USEDEP}]
66 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +PATCHES=(
71 + "${FILESDIR}/botocore-1.26.0-py311.patch"
72 +)
73 +
74 +distutils_enable_sphinx docs/source \
75 + 'dev-python/guzzle_sphinx_theme'
76 +distutils_enable_tests pytest
77 +
78 +src_prepare() {
79 + # unpin deps
80 + sed -i -e "s:>=.*':':" setup.py || die
81 +
82 + # unbundle deps
83 + rm -r botocore/vendored || die
84 + find -name '*.py' -exec sed -i \
85 + -e 's:from botocore[.]vendored import:import:' \
86 + -e 's:from botocore[.]vendored[.]:from :' \
87 + {} + || die
88 +
89 + distutils-r1_src_prepare
90 +}
91 +
92 +python_test() {
93 + local EPYTEST_DESELECT=(
94 + # rely on bundled six
95 + tests/functional/test_six_imports.py::test_no_bare_six_imports
96 + tests/functional/test_six_threading.py::test_six_thread_safety
97 + )
98 +
99 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
100 +}