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: Wed, 15 Mar 2023 05:33:14
Message-Id: 1678858383.00c1acf55ca5b6f2af2af04548b3a2bee2137ed4.mgorny@gentoo
1 commit: 00c1acf55ca5b6f2af2af04548b3a2bee2137ed4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 04:46:27 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 15 05:33:03 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00c1acf5
7
8 dev-python/botocore: Bump to 1.29.91
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.91.ebuild | 74 +++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
17 index 42e1ce31d0d9..1144a30248de 100644
18 --- a/dev-python/botocore/Manifest
19 +++ b/dev-python/botocore/Manifest
20 @@ -7,3 +7,4 @@ DIST botocore-1.29.87.gh.tar.gz 11221589 BLAKE2B c60ce2b4d58fa660aebc143f63848d8
21 DIST botocore-1.29.88.gh.tar.gz 11227872 BLAKE2B 1fd9bf0f147ac87c92723d23b8bcefc8c22261932081aa4530b72de8b96ef964df293100a61940e2adb088f3b6ced4a64758f3c36dbf598676949fe84115083b SHA512 d71f2f7f453ecae000491acef22da701d12e0296154b3ba81cbc0821e9266f6e95e5adefbf94fdf98333775a03d7a6d255f28963c54278f22c5c888d15a291ef
22 DIST botocore-1.29.89.gh.tar.gz 11227280 BLAKE2B 41a1243972e591ea23fb2eebaa5b5fb9547bbd8ccd72fc907c487fd56ebf90d8120ceee472e34a29cd2b036926bc93bda33b564b1b7083e8984daf366eced1f8 SHA512 356298fd3be39957dd60e6268cfd2652998e62950b9060e0774c68e158506dcfea8188059b588c08f520617af38b91eb6b71c16b92f7a71f75f33cb73e7786cf
23 DIST botocore-1.29.90.gh.tar.gz 11234660 BLAKE2B 9472b843e9a36b59ffb8171a5148d07736690fef62a88a1853011b0fc6cfabe8588ea1e48b66696f1f9a5ade17c53261349249d20b704d91c1b8e0aac3528b12 SHA512 cdf20dbdac7146f2fb19ac8adce2d4b6605241cbfcbf15b5df7d7b8ccf1cf95f04e683de8bfc71322f2bdc467a15ada3502b19c43f0e5d1bd5c1a07996a1e731
24 +DIST botocore-1.29.91.gh.tar.gz 11238226 BLAKE2B b2bf854f37cc05f1c3bd873691bc0968f7bd2d7374479ce8b72ecbf168a7ba503b8e871212a8dd802e52a28f4913d70f2bfc42c19ebeff838466d7d5702640db SHA512 a1108a45f262716b955c7674e5098324727bcd17b130deed6cb7c88451a92f302272c55c767e7c1c6947be8f77eccece3eccc2ffb7d9da2f6649e21e87d9e5c6
25
26 diff --git a/dev-python/botocore/botocore-1.29.91.ebuild b/dev-python/botocore/botocore-1.29.91.ebuild
27 new file mode 100644
28 index 000000000000..0f4daaa48e81
29 --- /dev/null
30 +++ b/dev-python/botocore/botocore-1.29.91.ebuild
31 @@ -0,0 +1,74 @@
32 +# Copyright 1999-2023 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_{10..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 + # TODO
101 + tests/functional/test_credentials.py::SSOSessionTest::test_token_chosen_from_provider
102 + )
103 +
104 + epytest tests/{functional,unit} -n "$(makeopts_jobs)"
105 +}