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, 28 Feb 2023 05:06:51
Message-Id: 1677560793.9705fb1aefcf122e4b21c4ad291ffa00227b563c.mgorny@gentoo
1 commit: 9705fb1aefcf122e4b21c4ad291ffa00227b563c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 04:29:23 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 05:06:33 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9705fb1a
7
8 dev-python/botocore: Bump to 1.29.80
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.29.80.ebuild | 74 +++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index df786de31aec..e852f0fe5415 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -1,2 +1,3 @@
21 DIST botocore-1.29.74.gh.tar.gz 11153254 BLAKE2B b3d3b75643cd5e3fac54a09e971daa23a043ba9f7ab773c2fd57dc15417c1b30c6f503515bad8734332bc40c4210e4ac09566c0742649c6ac3592e81ae9f8d79 SHA512 944ebbf1268fa9e8bb68ce5960da347613bcab585bf54c2fd6dbecb499088c1dc426357cde0a0f0d1780ecbc06acc33d8587f37c7f3d13577283b4549a353406
22 DIST botocore-1.29.79.gh.tar.gz 11184048 BLAKE2B 062326a477fb27844ec47af28b77424863d6ff407dbcfd95bc9aa26d4009f503364f3d438997fe437b4830b8ef8c7bfb7e026313364bb3e9429cd3b7c2eae261 SHA512 260cf6a533e32c6f514774e5c5ef6830feb77058e1074e730d7fa05fb7067dac093f1a612ed11e02db116671ca9f7301ed29e1625f6e47724301d25b03eb3c30
23 +DIST botocore-1.29.80.gh.tar.gz 11197756 BLAKE2B 62f70c71f6b5892ff4daaede65389c75a159ebc29da69b2b2f9b59fabcf1818d91b968cbb04f48acce8310f34b96dbb30189c1fdc609e124202a6743d5b3e65a SHA512 27f31ba27448c5ea3214dcd585d60901761f6cd26e384a861aa377842dd3561f293c261a6a3fd91e78cc3ea75f48b9369e77f4a8d1a4b4dd08fbdde9335ee5a8
24
25 diff --git a/dev-python/botocore/botocore-1.29.80.ebuild b/dev-python/botocore/botocore-1.29.80.ebuild
26 new file mode 100644
27 index 000000000000..0f4daaa48e81
28 --- /dev/null
29 +++ b/dev-python/botocore/botocore-1.29.80.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 1999-2023 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_{10..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="
54 + https://github.com/boto/botocore/archive/${PV}.tar.gz
55 + -> ${P}.gh.tar.gz
56 + "
57 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
58 +fi
59 +
60 +RDEPEND="
61 + dev-python/six[${PYTHON_USEDEP}]
62 + <dev-python/jmespath-2[${PYTHON_USEDEP}]
63 + dev-python/python-dateutil[${PYTHON_USEDEP}]
64 + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
65 +"
66 +BDEPEND="
67 + test? (
68 + dev-python/jsonschema[${PYTHON_USEDEP}]
69 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +distutils_enable_sphinx docs/source \
74 + 'dev-python/guzzle_sphinx_theme'
75 +distutils_enable_tests pytest
76 +
77 +src_prepare() {
78 + # unpin deps
79 + sed -i -e "s:>=.*':':" setup.py || die
80 +
81 + # unbundle deps
82 + rm -r botocore/vendored || die
83 + find -name '*.py' -exec sed -i \
84 + -e 's:from botocore[.]vendored import:import:' \
85 + -e 's:from botocore[.]vendored[.]:from :' \
86 + {} + || die
87 +
88 + distutils-r1_src_prepare
89 +}
90 +
91 +python_test() {
92 + local EPYTEST_DESELECT=(
93 + # rely on bundled six
94 + tests/functional/test_six_imports.py::test_no_bare_six_imports
95 + tests/functional/test_six_threading.py::test_six_thread_safety
96 + # fails on unrelated warnings
97 + tests/unit/test_client.py::TestAutoGeneratedClient::test_BOTO_DISABLE_COMMONNAME
98 + tests/unit/test_client.py::TestClientErrors::test_BOTO_DISABLE_COMMONNAME
99 + # TODO
100 + tests/functional/test_credentials.py::SSOSessionTest::test_token_chosen_from_provider
101 + )
102 +
103 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
104 +}