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: Thu, 01 Sep 2022 19:42:16
Message-Id: 1662061314.f0c84cd8d79d70a7295fb280dbcdb0ec3ab638ad.arthurzam@gentoo
1 commit: f0c84cd8d79d70a7295fb280dbcdb0ec3ab638ad
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 19:14:31 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 19:41:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0c84cd8
7
8 dev-python/botocore: add 1.27.64
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.64.ebuild | 72 +++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 6b4cc8d7a8b3..59ee3e019a3f 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -1,3 +1,4 @@
21 DIST botocore-1.27.56.gh.tar.gz 9545974 BLAKE2B 514c859f854aed83c3bb13ed3eab9999840d61e6f36e2c860f272f0fafde110d83da93f2843c419c577d0a8c737835c069438d322fc95581bb7c292ed16639a5 SHA512 c0bdeeb9254c5528034058932050874a0e40aee220f2d67a93c163e645e32badeae6517da23f69cf10452d5ed33a23188204bcdac385e43303882601e6e45922
22 DIST botocore-1.27.61.gh.tar.gz 9575336 BLAKE2B bbc2bb49ee84293d9d7d9f0cc3da70a141778bd68ecc45117a9e99bd8ceba7576b52ed0d5381b085c6a7ae32195a6709e76144f27681cd8d07338ed404b1b236 SHA512 1e1ce615a2b02bab2587bb475e783d197cf27496cb1c0c1b06c51453e545ed293b1fab555f23a67246a4a5babb6c5d12fafee2d6f8b997d168e43f62a5e16bfd
23 DIST botocore-1.27.63.gh.tar.gz 9581263 BLAKE2B 3b225160fe0095aa77754c874ceff558c56f547e0454a67fd13c8f093abbef975ff5cf878576b4b6235b1783aaae2278d05026b29d41a95e6168928b035cd1fb SHA512 b3698a0d5ea2e63de3fe94441a1781034d24c0ae5ff06a427ac55eb2cdd05bf917b01fcd9e1bbd389a1d4ac6b625d534b37c1d6c8c72b23670b66d892d5fe6da
24 +DIST botocore-1.27.64.gh.tar.gz 9588817 BLAKE2B 2479d7f6565a78baf7b9504bfdbba74f486b37968bf5074fc1eac150bcf410bd64d23fe47c1a057a38a94c8b4d29bf393613fa739c6c2007e5f523852ae02a24 SHA512 40e689b86997961c149877dc896281f722d09c2ab95149f4a40e98cd55a4a35ce77da5ff793f53801609b9084879ce2af8679771bd6bde2305c9cb27a1360e74
25
26 diff --git a/dev-python/botocore/botocore-1.27.64.ebuild b/dev-python/botocore/botocore-1.27.64.ebuild
27 new file mode 100644
28 index 000000000000..d1a6948e70e5
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.27.64.ebuild
31 @@ -0,0 +1,72 @@
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 + # fails on unrelated warnings
98 + tests/unit/test_client.py::TestAutoGeneratedClient::test_BOTO_DISABLE_COMMONNAME
99 + tests/unit/test_client.py::TestClientErrors::test_BOTO_DISABLE_COMMONNAME
100 + )
101 +
102 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
103 +}