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, 02 Feb 2022 23:21:13
Message-Id: 1643844059.f9e26dd92836b121d0ba87b77d2484d8e35e8a5b.mgorny@gentoo
1 commit: f9e26dd92836b121d0ba87b77d2484d8e35e8a5b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 2 22:42:08 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 2 23:20:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9e26dd9
7
8 dev-python/s3transfer: Bump to 0.5.1
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.5.1.ebuild | 41 +++++++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/s3transfer/Manifest b/dev-python/s3transfer/Manifest
17 index 964f3edcdc80..d08bd63ca8d3 100644
18 --- a/dev-python/s3transfer/Manifest
19 +++ b/dev-python/s3transfer/Manifest
20 @@ -1 +1,2 @@
21 DIST s3transfer-0.5.0.tar.gz 133535 BLAKE2B 2ce9235fbffc4c42682345873becac6f0d574ac44de523e10178bf7d115b261acbd1753b1a41ca301b72fa96a6a93314572fe12ea4d286a325a0a36e3cf56b36 SHA512 e34d115d149f8f9715fa0147521eec63a5fd672ee513d690248fbca73003cf4c9e43775bd5b3616f7ad3a6734993a1c8b2ba789394d338a8ac4c841a0e51999c
22 +DIST s3transfer-0.5.1.tar.gz 134278 BLAKE2B e67a726743af4f75e3e22519addeaa4437020ec26e0deec67d003d96307865cb624d7da272618114b168c32f26f595a27ed823b2905f47b1c2e5e187a68457cb SHA512 1bdcb9adfa795b524e36369e9128b1bd39d0b14f51862aba779a1eebe0569283da58138da52e031073d8c1199441083771c7f6e0657e0e1da9cd0d767450d52f
23
24 diff --git a/dev-python/s3transfer/s3transfer-0.5.1.ebuild b/dev-python/s3transfer/s3transfer-0.5.1.ebuild
25 new file mode 100644
26 index 000000000000..458fde84b952
27 --- /dev/null
28 +++ b/dev-python/s3transfer/s3transfer-0.5.1.ebuild
29 @@ -0,0 +1,41 @@
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..10} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="An Amazon S3 Transfer Manager"
41 +HOMEPAGE="https://github.com/boto/s3transfer"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +
48 +RDEPEND="
49 + dev-python/botocore[${PYTHON_USEDEP}]
50 +"
51 +BDEPEND="
52 + test? (
53 + dev-python/mock[${PYTHON_USEDEP}]
54 + )
55 +"
56 +
57 +distutils_enable_tests pytest
58 +
59 +src_prepare() {
60 + # do not rely on bundled deps in botocore (sic!)
61 + find -name '*.py' -exec sed -i \
62 + -e 's:from botocore[.]vendored import:import:' \
63 + -e 's:from botocore[.]vendored[.]:from :' \
64 + {} + || die
65 + distutils-r1_src_prepare
66 +}
67 +
68 +python_test() {
69 + epytest tests/{unit,functional}
70 +}