dev-python/blobfile: fix tests

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
Florian Albrechtskirchinger
2026-07-08 14:31:23 +02:00
parent 5661a8af45
commit 1d07e5d4a5
2 changed files with 22 additions and 4 deletions

View File

@@ -1 +1 @@
DIST blobfile-3.2.0.tar.gz 78442 BLAKE2B f89d39931a87ac2f6a98fc793771b1d3fd5b199553f18cefaabd49a21d2d2e61bf3c0a805c1b7c6f4c6dfdd2a3ce080349f4b2e9c0504e89627138754a0cab9e SHA512 aa254372e410d7cce5fc6cbe3af61c0e8a99f6adf38b38a024e45155b64552fdea4acb0aa41ec20208ab1abd0b8719718ba8abe29274639808299f7d5a0e7eca
DIST blobfile-3.2.0.gh.tar.gz 81097 BLAKE2B 76caae4442002ba13f273f740c733ec91ddeb1a96625965cdb0e41b1aca9bbcacd9c0ae38dfd31ffabfac47036c17f5de87223c86fe9e59a1805bc6a75479059 SHA512 a74d522d94ec2a4c5cc0a6ea3a302b1b14668c74c33db353ff5f671ed580be89e655a0866c31815d71c9ed0f3598b2a79b8405f6bbf170f962c6a38ae2630ead

View File

@@ -6,19 +6,20 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 pypi
inherit distutils-r1
DESCRIPTION="Read GCS, ABS and local paths with the same interface, tensorflow.io.gfile clone"
HOMEPAGE="
https://github.com/blobfile/blobfile
https://pypi.org/project/blobfile/
"
SRC_URI="
https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
"
LICENSE="Unlicense"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="
>=dev-python/filelock-3.0[${PYTHON_USEDEP}]
@@ -39,3 +40,20 @@ python_prepare() {
sed -e 's/pycryptodomex/pycryptodome/' -i pyproject.toml || die
sed -e 's/from Cryptodome/from Crypto/' -i blobfile/_gcp.py || die
}
python_test() {
local EPYTEST_DESELECT=(
# network
blobfile/_ops_test.py::test_az_path
blobfile/_ops_test.py::test_azure_public_get_url
blobfile/_ops_test.py::test_copy_azure_public
blobfile/_ops_test.py::test_gcs_public
blobfile/_ops_test.py::test_concurrent_write_as
blobfile/_ops_test.py::test_more_exists
blobfile/_ops_test.py::test_invalid_paths
blobfile/_ops_test.py::test_azure_public_container
blobfile/_ops_test.py::test_scandir_error
)
epytest -k "not _get_temp_gcs_path and not _get_temp_as_path" blobfile/*_test.py
}