File tree 4 files changed +6
-10
lines changed
4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ requirements:
24
24
- dataclasses
25
25
- multiprocess
26
26
- fsspec
27
- - huggingface_hub >=0.23 .0,<1.0.0
27
+ - huggingface_hub >=0.24 .0,<1.0.0
28
28
- packaging
29
29
- aiohttp
30
30
run :
@@ -40,7 +40,7 @@ requirements:
40
40
- dataclasses
41
41
- multiprocess
42
42
- fsspec
43
- - huggingface_hub >=0.23 .0,<1.0.0
43
+ - huggingface_hub >=0.24 .0,<1.0.0
44
44
- packaging
45
45
- aiohttp
46
46
Original file line number Diff line number Diff line change 62
62
run : uv pip install --system --upgrade pyarrow huggingface-hub "dill<0.3.9"
63
63
- name : Install dependencies (minimum versions)
64
64
if : ${{ matrix.deps_versions != 'deps-latest' }}
65
- run : uv pip install --system pyarrow==15.0.0 huggingface-hub==0.23.5 transformers dill==0.3.1.1
65
+ run : uv pip install --system pyarrow==15.0.0 huggingface-hub==0.24.7 transformers dill==0.3.1.1
66
66
- name : Test with pytest
67
67
run : |
68
68
python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/
Original file line number Diff line number Diff line change 133
133
# for data streaming via http
134
134
"aiohttp" ,
135
135
# To get datasets from the Datasets Hub on huggingface.co
136
- "huggingface-hub>=0.23 .0" ,
136
+ "huggingface-hub>=0.24 .0" ,
137
137
# Utilities from PyPA to e.g., compare versions
138
138
"packaging" ,
139
139
# To parse YAML metadata from dataset cards
Original file line number Diff line number Diff line change 1
1
from tempfile import NamedTemporaryFile
2
2
3
- import huggingface_hub
4
3
import pytest
5
4
import requests
6
- from packaging import version
7
5
8
6
from datasets .utils .file_utils import fsspec_get , fsspec_head
9
7
@@ -18,10 +16,8 @@ def test_offline_with_timeout():
18
16
requests .request ("GET" , "https://huggingface.co" )
19
17
with pytest .raises (requests .exceptions .Timeout ):
20
18
requests .request ("GET" , "https://huggingface.co" , timeout = 1.0 )
21
- # old versions of `huggingface_hub` don't have timeouts by default and don't allow to set timeouts in HfFileSystem
22
- if version .parse (huggingface_hub .__version__ ) >= version .parse ("0.23.0" ):
23
- with pytest .raises (requests .exceptions .Timeout ), NamedTemporaryFile () as temp_file :
24
- fsspec_get ("hf://dummy" , temp_file = temp_file )
19
+ with pytest .raises (requests .exceptions .Timeout ), NamedTemporaryFile () as temp_file :
20
+ fsspec_get ("hf://dummy" , temp_file = temp_file )
25
21
26
22
27
23
@pytest .mark .integration
You can’t perform that action at this time.
0 commit comments