Skip to content

Commit 5386def

Browse files
authored
Set name for 'read_values' UDF (#1090)
* Set name for 'read_values' UDF * Print packages versions before testing examples * Temporary limit 'huggingface_hub' version to be <0.30 to prevent "Provider 'featherless-ai' not supported" error (see also: huggingface/huggingface_hub#3064)
1 parent 680ead9 commit 5386def

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def build(session: nox.Session) -> None:
9090
@nox.session(python=python_versions)
9191
def examples(session: nox.Session) -> None:
9292
session.install(".[examples]")
93+
session.run("uv", "pip", "list")
9394
session.run(
9495
"pytest",
9596
"--durations=0",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies = [
4848
"Pillow>=10.0.0,<12",
4949
"msgpack>=1.0.4,<2",
5050
"psutil",
51-
"huggingface_hub",
51+
"huggingface_hub<0.31", # fix for "Provider 'featherless-ai' not supported" error
5252
"iterative-telemetry>=0.0.10",
5353
"platformdirs",
5454
"dvc-studio-client>=0.21,<1",

src/datachain/lib/dc/values.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def read_values(
4242
def _func_fr() -> Iterator[tuple_type]: # type: ignore[valid-type]
4343
yield from tuples
4444

45+
_func_fr.__name__ = "read_values"
46+
4547
chain = read_records(
4648
DataChain.DEFAULT_FILE_RECORD,
4749
session=session,

0 commit comments

Comments
 (0)