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: Sat, 10 Sep 2022 05:38:36
Message-Id: 1662788299.47b18d87453be989345118ad8513da10dac96ef4.arthurzam@gentoo
1 commit: 47b18d87453be989345118ad8513da10dac96ef4
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 10 05:04:47 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 10 05:38:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47b18d87
7
8 dev-python/botocore: add 1.27.70
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.70.ebuild | 72 +++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 6511a7f194d8..fb3df25f964d 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -5,3 +5,4 @@ DIST botocore-1.27.64.gh.tar.gz 9588817 BLAKE2B 2479d7f6565a78baf7b9504bfdbba74f
21 DIST botocore-1.27.65.gh.tar.gz 9592250 BLAKE2B 7ecb6d13c061100d101b5c3fdf84b25a74137ee49efda86b13549341f6a6932d07ddf0858bd436e0de4719617f2352b423757fd618501ccd1a37b74b9bb5f358 SHA512 cc3ea5329c41e6b0ffc55f170feadc1550e5ca3656c59d809600148cc2268cb2bace6d0b95dfb9031338c90fe3c2e89081bfeb100903c0eed7249612e539c522
22 DIST botocore-1.27.66.gh.tar.gz 9595449 BLAKE2B 861421948b9ab5d80e77805f6bab8a013005ed89912084bc436cdd3d0ca00d4e94f82f0928a0a3c9833135ce5b91395f36d5d29633fb38355da4e23c03d4699e SHA512 163059aac7d75182ba85017f96be75ab556dbedda54ca51221530c51ee795e51fda0b5a0d59a42a4554a7059396d53f1f83a96fd16b90d738773cc97dfce4000
23 DIST botocore-1.27.69.gh.tar.gz 9598373 BLAKE2B 678cfea9cee9c9dbdae1fc7d23ef8530de122fc6443d5531fbcc458015d12f03e2ca21efd7103d014db541a5b064210ac85d1a7a182d00caa5d3c61c6fbb74af SHA512 856d0a5e75b929f5ccea31aa0f164db6c2c402edd6070f92b2a1c3b794eb0189be677dc0f527315af9b0d788e3e6247b8402d6e60749faf147aca6b559d0ad7c
24 +DIST botocore-1.27.70.gh.tar.gz 9601647 BLAKE2B 2d980a26ee0ebf6ead3a8c41f69ae02726e5984948c20855dc2428c0f0c5c775ef6cdc38544aba3e4abad7ed69b9e1929103cc990d0d2ceb95c547d7c17b0b9d SHA512 24a3066abd1b57060d4ddf89b011a238ae3bdb65b08bb1f6ea6de7e54ddc78d809d7f7ec532b95ac9583f5ffec83e7d40a531fd088a486b132fe1fb044b4ebbb
25
26 diff --git a/dev-python/botocore/botocore-1.27.70.ebuild b/dev-python/botocore/botocore-1.27.70.ebuild
27 new file mode 100644
28 index 000000000000..d1a6948e70e5
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.27.70.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 +}