dev-python/fsspec: add optfeatures for fs backends

These are nondefault and highly runtime-switchable (honorable mention as
usual to IUSE_RUNTIME).

No revbump, it is informational only and deeply noncritical as such.

Closes: https://bugs.gentoo.org/978837
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2026-07-16 22:07:40 -04:00
parent 4ec2e24384
commit f7b129be92
2 changed files with 20 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1
inherit distutils-r1 optfeature
MY_P=filesystem_spec-${PV}
DESCRIPTION="A specification that python filesystems should adhere to"
@@ -65,3 +65,12 @@ python_test() {
epytest -o tmp_path_retention_policy=all
}
pkg_postinst() {
optfeature_header "Install optional filesystem backends:"
optfeature "http" dev-python/aiohttp
optfeature "gist/github/jupyter" dev-python/requests
optfeature "ssh/sftp" dev-python/paramiko
optfeature "arrow/hdfs" dev-python/pyarrow
optfeature "libarchive" dev-python/libarchive-c
}

View File

@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
inherit distutils-r1 optfeature
MY_P=filesystem_spec-${PV}
DESCRIPTION="A specification that python filesystems should adhere to"
@@ -59,3 +59,12 @@ python_test() {
epytest -o tmp_path_retention_policy=all
}
pkg_postinst() {
optfeature_header "Install optional filesystem backends:"
optfeature "http" dev-python/aiohttp
optfeature "gist/github/jupyter" dev-python/requests
optfeature "ssh/sftp" dev-python/paramiko
optfeature "arrow/hdfs" dev-python/pyarrow
optfeature "libarchive" dev-python/libarchive-c
}