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/s3transfer/
Date: Wed, 01 Jun 2022 07:21:44
Message-Id: 1654068093.f378eb31839afe4a7a598bc91c6bb0d38217b7fb.mgorny@gentoo
1 commit: f378eb31839afe4a7a598bc91c6bb0d38217b7fb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 06:38:31 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 07:21:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f378eb31
7
8 dev-python/s3transfer: Bump to 0.6.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/s3transfer/Manifest | 1 +
13 dev-python/s3transfer/s3transfer-0.6.0.ebuild | 44 +++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-python/s3transfer/Manifest b/dev-python/s3transfer/Manifest
17 index fd9b9479bcc5..cd7a4cd0693c 100644
18 --- a/dev-python/s3transfer/Manifest
19 +++ b/dev-python/s3transfer/Manifest
20 @@ -1 +1,2 @@
21 DIST s3transfer-0.5.2.tar.gz 134873 BLAKE2B 55adab89ca04a9ed1f0195237cab55f97769a8f865e645437df6d95effcf1a27a734f1577daa981261123b681044b540ebbb876e1a8a3b4cf1cf4e5018f2c213 SHA512 6b035ff5b33ba5c048f6921f72684802a9b12516c70c75bd153e481e62a768015f45f569aa88071f887839fd2e004b5f9202813926ca33d58c30793218d14083
22 +DIST s3transfer-0.6.0.tar.gz 134871 BLAKE2B 7ab84f22dc20751dd461857f93d7f1aad1490432ed25e7506c5abe61f79d1f3cafd8ddb190a0942a2c5a9947c5068fcf397dce34f255a246381f4cf1f0d09e7a SHA512 0c1c3306015cab4a4436b1d2fec6708e17f4c5111f8a265fbfe134defebda33a43bd985e559be993b6175af9eee142e9f27da123f8d14f77cfc59e48ca1b905f
23
24 diff --git a/dev-python/s3transfer/s3transfer-0.6.0.ebuild b/dev-python/s3transfer/s3transfer-0.6.0.ebuild
25 new file mode 100644
26 index 000000000000..3e06d52b561d
27 --- /dev/null
28 +++ b/dev-python/s3transfer/s3transfer-0.6.0.ebuild
29 @@ -0,0 +1,44 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="An Amazon S3 Transfer Manager"
41 +HOMEPAGE="
42 + https://github.com/boto/s3transfer/
43 + https://pypi.org/project/s3transfer/
44 +"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
50 +
51 +RDEPEND="
52 + >=dev-python/botocore-1.24.7[${PYTHON_USEDEP}]
53 +"
54 +BDEPEND="
55 + test? (
56 + dev-python/mock[${PYTHON_USEDEP}]
57 + )
58 +"
59 +
60 +distutils_enable_tests pytest
61 +
62 +src_prepare() {
63 + # do not rely on bundled deps in botocore (sic!)
64 + find -name '*.py' -exec sed -i \
65 + -e 's:from botocore[.]vendored import:import:' \
66 + -e 's:from botocore[.]vendored[.]:from :' \
67 + {} + || die
68 + distutils-r1_src_prepare
69 +}
70 +
71 +python_test() {
72 + epytest tests/{unit,functional}
73 +}