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: Thu, 26 May 2022 08:07:22
Message-Id: 1653552426.e6b3e9b7f7d6d8848711231bd3933f9b703972bd.mgorny@gentoo
1 commit: e6b3e9b7f7d6d8848711231bd3933f9b703972bd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 26 07:04:30 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 26 08:07:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6b3e9b7
7
8 dev-python/botocore: Bump to 1.26.8
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.26.8.ebuild | 70 ++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 48c1ca49ef73..2445a6259423 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -7,3 +7,4 @@ DIST botocore-1.26.4.tar.gz 8993009 BLAKE2B 4d968ed094a8581efa08ce7b51ea8967937e
21 DIST botocore-1.26.5.tar.gz 8994964 BLAKE2B 472bc20b1a579674b97fa42f5b7bba2f06f1bcc40b11d5d5fa31b283a1d8648be82db4ee7e7170097d2e695bad2d1f9e398dfa7e4b85381134f151010f212be2 SHA512 a696c241989f6754596f69577c4e4f5d92df87e9b6488533e930b28b85e02fae8af1ac73d907790a75496a46824b45beb7df220c72be3bfc0bee8153b4846939
22 DIST botocore-1.26.6.tar.gz 8998364 BLAKE2B f4e735b919ab6343419fb37945e3fbbf253d5ffdd25b3903888c544127417006eb8b44ddd330f56172ab2c106efbe9e7d9ae2a74e7d1ff51752fee1e08bff3ff SHA512 4a5a982dcb2b2fdbc51726ec6a59855c4c073cb921648f372ca5b6a602c70be5285e4fb98da13ae57f2b312bd5374b903ad857112f64e1ac38f2be6bee1303d3
23 DIST botocore-1.26.7.tar.gz 9004937 BLAKE2B 7aaa6e7383ba2dae73477bf498028175d5c62945428facf34c7f9b1145a8715a970383cea316f89e5727171c92bf1fd9f25f772335ecfbfcb0be6e5f8de39a2d SHA512 362e2f213cd51271608fc1501845a74a9702fb60ee6619cedc7baf3a37c3dedd12976b51bd182cb4601f2c33e3ebc5358356365d9e32ba8eff308ee5775178ac
24 +DIST botocore-1.26.8.tar.gz 8996827 BLAKE2B fb7b30a1f013e9625f20980bdfd2192bc57044f5b7f277e35c8495414bd6b0c99c10d6a9d02c68e67a244249695db7ad3c9cee00db9b46114ec92c8504a07ceb SHA512 93223e428d2464eb2bca1806ba1574d43da07c457aaada8d7839fe1508258d4f8ed7ad644539ec8b5a80307e436f4654f549b23704199ba0d4bd7fcefff2c6fd
25
26 diff --git a/dev-python/botocore/botocore-1.26.8.ebuild b/dev-python/botocore/botocore-1.26.8.ebuild
27 new file mode 100644
28 index 000000000000..2fb86c59b25e
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.26.8.ebuild
31 @@ -0,0 +1,70 @@
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="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}/botocore-1.26.0-py311.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} -n "$(makeopts_jobs)"
101 +}