Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/b2sdk/
Date: Fri, 01 Oct 2021 21:04:29
Message-Id: 1633118489.34f9d34b57c47f538802422753f155531ef8308d.lanodan@gentoo
1 commit: 34f9d34b57c47f538802422753f155531ef8308d
2 Author: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 1 19:18:30 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Fri Oct 1 20:01:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=34f9d34b
7
8 dev-python/b2sdk: bump to 1.12.0
9
10 Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com>
11
12 dev-python/b2sdk/Manifest | 1 +
13 dev-python/b2sdk/b2sdk-1.12.0.ebuild | 48 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest
17 index 245834d91..38390b803 100644
18 --- a/dev-python/b2sdk/Manifest
19 +++ b/dev-python/b2sdk/Manifest
20 @@ -1 +1,2 @@
21 +DIST b2sdk-1.12.0.tar.gz 273412 BLAKE2B e67cf20a6d7277c3d2990e6f6c46cf9df253b3a46a8c8672cbdc810ca851e8c0cd6b6033b9034ce00283a577e2838cdb0c15410b12546f87c480581b5920074b SHA512 4d5eff1f9efed551c474a472a4c531b67b3356e959dde1d1058aad797abd5fd160781700753019d62ac2f05bd711bf1e6a0b15c0f5f86fd93bab17347a83cb13
22 DIST b2sdk-1.8.0.tar.gz 250511 BLAKE2B dad792589148fc3cad91fed1aeb43e02afca6f67f35e2f8239510606d601067abbdd36a3f0b2b2b8264697004d548d8077c999437f027c058072d7383d13c48c SHA512 ee1e1987f127835b2016bba9485c7a9d9503b4a675662a7364310fec7c963214805ed6bc15b3a1f07477f202bbe06325f480997eb202bcdfa1cb24f006d0a900
23
24 diff --git a/dev-python/b2sdk/b2sdk-1.12.0.ebuild b/dev-python/b2sdk/b2sdk-1.12.0.ebuild
25 new file mode 100644
26 index 000000000..dafe65efb
27 --- /dev/null
28 +++ b/dev-python/b2sdk/b2sdk-1.12.0.ebuild
29 @@ -0,0 +1,48 @@
30 +# Copyright 2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="The client library for BackBlaze's B2 product"
39 +HOMEPAGE="https://github.com/Backblaze/b2-sdk-python"
40 +SRC_URI="https://github.com/Backblaze/b2-sdk-python/releases/download/v${PV}/${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +PATCHES=(
47 + "${FILESDIR}/${PN}-1.8.0-disable-requirement-installation.patch"
48 +)
49 +
50 +RDEPEND="
51 + $(python_gen_cond_dep '
52 + >=dev-python/arrow-0.8.0[${PYTHON_USEDEP}]
53 + >=dev-python/logfury-0.1.2[${PYTHON_USEDEP}]
54 + >=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
55 + >=dev-python/tqdm-4.5.0[${PYTHON_USEDEP}]
56 + ')
57 + $(python_gen_cond_dep '
58 + dev-python/importlib_metadata[${PYTHON_USEDEP}]
59 + ' pypy3 python3_7)
60 +"
61 +
62 +distutils_enable_tests pytest
63 +
64 +BDEPEND+=" test? (
65 + $(python_gen_cond_dep '
66 + >=dev-python/pytest-mock-3.3.1[${PYTHON_USEDEP}]
67 + dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}]
68 + ')
69 +)"
70 +
71 +# These tests seem to require some b2 authentication (they're integration tests
72 +# so this is not unreasonable)
73 +python_test() {
74 + epytest \
75 + --deselect test/integration/test_large_files.py::TestLargeFile::test_large_file \
76 + --deselect test/integration/test_raw_api.py::test_raw_api
77 +}