dev-python/b2sdk: treeclean, moved to ::gentoo

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2025-07-08 10:35:36 +02:00
parent f186091d40
commit 4a34d08a1e
5 changed files with 0 additions and 175 deletions

View File

@@ -1,2 +0,0 @@
DIST b2sdk-2.3.0.tar.gz 390949 BLAKE2B e14c9fc56b7ed66350b8d73456dd50b0f6fdb40d7a6fe73cf7950afcb25bb5257a63bb361d8cbca99116b4999a2b0195967b4e08aff5ca9aaf5c16e4b4b532eb SHA512 29ba07581d0e587b413396f128d7fe14f8ac25ea0553eef69e1c428823690974d9373db727321f9838886a07946c36defdd5bae24d31266751d6b1a2f05968c6
DIST b2sdk-2.8.1.tar.gz 404058 BLAKE2B 69a74d995a7ff91f252676edfbe274e6239ec70f95ccaf5f357fd13f482dea433074b471bd06fc1ee7f88bdc964d3dd5571441491dcfa333f8101eeb8b9b3ad8 SHA512 20cc8b4f28f010588965a5ca6300b41d914ecdba57f28ab0719c4ad52293d41e5c62648a178a5202614cdc65f22a9e48c5dd966a682daa98be07fdb04235f318

View File

@@ -1,52 +0,0 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="pdm-backend"
PYTHON_COMPAT=( python3_{11..12} )
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/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/b2-sdk-python-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
export PDM_BUILD_SCM_VERSION=${PV}
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/logfury-1.0.1[${PYTHON_USEDEP}]
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}]
')
"
distutils_enable_tests pytest
# tqdm dependency is temporary, see
# https://github.com/Backblaze/b2-sdk-python/issues/489
BDEPEND+=" test? (
$(python_gen_cond_dep '
>=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}]
>=dev-python/tqdm-4.66.2[${PYTHON_USEDEP}]
')
)"
PATCHES=(
# migrate from pytest-lazy-fixture to pytest-lazy-fixtures
"${FILESDIR}/${P}-lazy-fixtures.patch"
)
# These tests seem to require some b2 authentication (they're integration tests
# so this is not unreasonable)
EPYTEST_DESELECT=(
# These integration tests require an actual connection to backblaze, which
# can't typically work in the sandbox
test/integration
)

View File

@@ -1,48 +0,0 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="pdm-backend"
PYTHON_COMPAT=( python3_{11..13} )
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/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/b2-sdk-python-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
export PDM_BUILD_SCM_VERSION=${PV}
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/annotated-types-0.7.0[${PYTHON_USEDEP}]
>=dev-python/logfury-1.0.1[${PYTHON_USEDEP}]
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}]
')
"
distutils_enable_tests pytest
# tqdm dependency is temporary, see
# https://github.com/Backblaze/b2-sdk-python/issues/489
BDEPEND+=" test? (
$(python_gen_cond_dep '
>=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}]
>=dev-python/tqdm-4.66.2[${PYTHON_USEDEP}]
')
)"
# These tests seem to require some b2 authentication (they're integration tests
# so this is not unreasonable)
EPYTEST_DESELECT=(
# These integration tests require an actual connection to backblaze, which
# can't typically work in the sandbox
test/integration
)

View File

@@ -1,56 +0,0 @@
Migrate from pytest-lazy-fixture to pytest-lazy-fixtures.
https://github.com/Backblaze/b2-sdk-python/issues/484
--- a/test/unit/account_info/fixtures.py
+++ b/test/unit/account_info/fixtures.py
@@ -11,6 +11,7 @@ from __future__ import annotations
import pytest
from apiver_deps import InMemoryAccountInfo, SqliteAccountInfo
+from pytest_lazy_fixtures import lf
@pytest.fixture
@@ -84,8 +85,8 @@ def sqlite_account_info(sqlite_account_info_factory):
@pytest.fixture(
params=[
- pytest.lazy_fixture('in_memory_account_info_factory'),
- pytest.lazy_fixture('sqlite_account_info_factory'),
+ lf('in_memory_account_info_factory'),
+ lf('sqlite_account_info_factory'),
]
)
def account_info_factory(request):
@@ -94,8 +95,8 @@ def account_info_factory(request):
@pytest.fixture(
params=[
- pytest.lazy_fixture('in_memory_account_info'),
- pytest.lazy_fixture('sqlite_account_info'),
+ lf('in_memory_account_info'),
+ lf('sqlite_account_info'),
]
)
def account_info(request):
--- a/test/unit/test_cache.py
+++ b/test/unit/test_cache.py
@@ -13,7 +13,7 @@ from dataclasses import dataclass
import pytest
from apiver_deps import AuthInfoCache, DummyCache, InMemoryAccountInfo, InMemoryCache
-from pytest_lazyfixture import lazy_fixture
+from pytest_lazy_fixtures import lf
@pytest.fixture
@@ -32,8 +32,8 @@ def auth_info_cache():
@pytest.fixture(
- scope="class", params=[lazy_fixture('in_memory_cache'),
- lazy_fixture('auth_info_cache')]
+ params=[lf('in_memory_cache'),
+ lf('auth_info_cache')]
)
def cache(request):
return request.param

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ezzieyguywuf@gmail.com</email>
<name>Wolfgang E. Sanyer</name>
</maintainer>
<longdescription lang="en">
The command-line tool that gives easy access to all of the capabilities
of B2 Cloud Storage.
This program provides command-line access to the B2 service.
</longdescription>
<upstream>
<remote-id type="github">Backblaze/b2-sdk-python</remote-id>
</upstream>
</pkgmetadata>