Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/botocore/
Date: Tue, 16 Aug 2022 18:51:08
Message-Id: 1660675805.cde17837a07b5982b5147be26c46ed27c3bf3108.arthurzam@gentoo
1 commit: cde17837a07b5982b5147be26c46ed27c3bf3108
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 16 18:46:25 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 16 18:50:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cde17837
7
8 dev-python/botocore: add 1.27.52
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/botocore/Manifest | 1 +
13 dev-python/botocore/botocore-1.27.52.ebuild | 69 +++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index d936412fc594..dcc5b53b0281 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -5,3 +5,4 @@ DIST botocore-1.27.47.gh.tar.gz 9506174 BLAKE2B 9fe05af1b1cf7df90c61e15c0ad8a701
21 DIST botocore-1.27.49.gh.tar.gz 9510394 BLAKE2B 01a0f2dd80adadc3bc1acb3c26e3280171d11e0e1bd14535214aab7b01a5f43c7f707b6396a83a77edfc417c2047ca2d11b52550321acd88528c93a02250b079 SHA512 30f9891eed6277cadc3379f23214d08caab917114bceebd3400c64f8271d449609b9f3bc31c01976e705b565d136f8d1fab1f0bd3ee2870880703d6b40244f1f
22 DIST botocore-1.27.50.gh.tar.gz 9519905 BLAKE2B 2a44bcc5c66a4306884683f9da022750114568b7ac061c65444d329432e457b38d65db06c25526932f77eb43fe822c221a87cab643c3d3492e15325e1546a8ff SHA512 f7d8445d6510599c2c5459bf1d93761698d5b0f527ac74e5bee20286d2769dc9a1998ae9577a740a9a7cf7611843dd90e193db144f8f788b13c017fd7a641957
23 DIST botocore-1.27.51.gh.tar.gz 9525092 BLAKE2B c38085ca15f4dfef1853ef40cc7fe09ab1e19efe8f680e7bf5a1d586c3519ca48c43432ac534fc24c7ff9d4630136cda7782af82b3b7d4a4bab5f726419def7a SHA512 67b2bccfc2fc92edd8397b02b5e5bf896ec09b6b826c9bab6a1dcdc523de78900b0204443a862728384bf0596e2c79f6fc27ba3a95c3556e7e10c6ace941afe1
24 +DIST botocore-1.27.52.gh.tar.gz 9525783 BLAKE2B 272b7b36f51b4048bbf75b426826ce5c60fb7fd2b9fbd714b1aaf02fdb99da6b522ae5cecea0468755a9edb2cd4d82a8fc6794b9f4a6e64d3c129a436f6a8397 SHA512 cb231a0dff10c55212ce013daa686b96da59b226ef545911a6dc535ce29565aca317e300d6a8dbcf2de1e3c97f761a6ad46f66d17aad2980be7e7f45166e3365
25
26 diff --git a/dev-python/botocore/botocore-1.27.52.ebuild b/dev-python/botocore/botocore-1.27.52.ebuild
27 new file mode 100644
28 index 000000000000..6558cbe56a50
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.27.52.ebuild
31 @@ -0,0 +1,69 @@
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..11} )
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="
55 + https://github.com/boto/botocore/archive/${PV}.tar.gz
56 + -> ${P}.gh.tar.gz
57 + "
58 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
59 +fi
60 +
61 +RDEPEND="
62 + dev-python/six[${PYTHON_USEDEP}]
63 + <dev-python/jmespath-2[${PYTHON_USEDEP}]
64 + dev-python/python-dateutil[${PYTHON_USEDEP}]
65 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
66 +"
67 +BDEPEND="
68 + test? (
69 + dev-python/jsonschema[${PYTHON_USEDEP}]
70 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
71 + )
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 +}