commit: 34f9d34b57c47f538802422753f155531ef8308d Author: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com> AuthorDate: Fri Oct 1 19:18:30 2021 +0000 Commit: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com> CommitDate: Fri Oct 1 20:01:29 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=34f9d34b
dev-python/b2sdk: bump to 1.12.0 Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com> dev-python/b2sdk/Manifest | 1 + dev-python/b2sdk/b2sdk-1.12.0.ebuild | 48 ++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest index 245834d91..38390b803 100644 --- a/dev-python/b2sdk/Manifest +++ b/dev-python/b2sdk/Manifest @@ -1 +1,2 @@ +DIST b2sdk-1.12.0.tar.gz 273412 BLAKE2B e67cf20a6d7277c3d2990e6f6c46cf9df253b3a46a8c8672cbdc810ca851e8c0cd6b6033b9034ce00283a577e2838cdb0c15410b12546f87c480581b5920074b SHA512 4d5eff1f9efed551c474a472a4c531b67b3356e959dde1d1058aad797abd5fd160781700753019d62ac2f05bd711bf1e6a0b15c0f5f86fd93bab17347a83cb13 DIST b2sdk-1.8.0.tar.gz 250511 BLAKE2B dad792589148fc3cad91fed1aeb43e02afca6f67f35e2f8239510606d601067abbdd36a3f0b2b2b8264697004d548d8077c999437f027c058072d7383d13c48c SHA512 ee1e1987f127835b2016bba9485c7a9d9503b4a675662a7364310fec7c963214805ed6bc15b3a1f07477f202bbe06325f480997eb202bcdfa1cb24f006d0a900 diff --git a/dev-python/b2sdk/b2sdk-1.12.0.ebuild b/dev-python/b2sdk/b2sdk-1.12.0.ebuild new file mode 100644 index 000000000..dafe65efb --- /dev/null +++ b/dev-python/b2sdk/b2sdk-1.12.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit distutils-r1 + +DESCRIPTION="The client library for BackBlaze's B2 product" +HOMEPAGE="https://github.com/Backblaze/b2-sdk-python" +SRC_URI="https://github.com/Backblaze/b2-sdk-python/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}/${PN}-1.8.0-disable-requirement-installation.patch" +) + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/arrow-0.8.0[${PYTHON_USEDEP}] + >=dev-python/logfury-0.1.2[${PYTHON_USEDEP}] + >=dev-python/requests-2.9.1[${PYTHON_USEDEP}] + >=dev-python/tqdm-4.5.0[${PYTHON_USEDEP}] + ') + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' pypy3 python3_7) +" + +distutils_enable_tests pytest + +BDEPEND+=" test? ( + $(python_gen_cond_dep ' + >=dev-python/pytest-mock-3.3.1[${PYTHON_USEDEP}] + dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] + ') +)" + +# These tests seem to require some b2 authentication (they're integration tests +# so this is not unreasonable) +python_test() { + epytest \ + --deselect test/integration/test_large_files.py::TestLargeFile::test_large_file \ + --deselect test/integration/test_raw_api.py::test_raw_api +}