diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac9a05884f4..f98e72b427d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: uv pip install --system -r additional-tests-requirements.txt --no-deps - name: Install dependencies (latest versions) if: ${{ matrix.deps_versions == 'deps-latest' }} - run: uv pip install --system --upgrade pyarrow "huggingface-hub<0.23.0" dill + run: uv pip install --system --upgrade pyarrow huggingface-hub dill - name: Install dependencies (minimum versions) if: ${{ matrix.deps_versions != 'deps-latest' }} run: uv pip install --system pyarrow==12.0.0 huggingface-hub==0.21.2 transformers dill==0.3.1.1 diff --git a/pyproject.toml b/pyproject.toml index cbfcb3d9c86..977168c9789 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,9 +15,10 @@ known-first-party = ["datasets"] [tool.pytest.ini_options] # Test fails if a FutureWarning is thrown by `huggingface_hub` -filterwarnings = [ - "error::FutureWarning:huggingface_hub*", -] +# Temporarily disabled because transformers 4.41.1 calls deprecated code from `huggingface_hub` that causes FutureWarning +# filterwarnings = [ +# "error::FutureWarning:huggingface_hub*", +# ] markers = [ "unit: unit test", "integration: integration test", diff --git a/setup.py b/setup.py index 219f69867ce..e3d11f2b5f4 100644 --- a/setup.py +++ b/setup.py @@ -135,7 +135,7 @@ # for data streaming via http "aiohttp", # To get datasets from the Datasets Hub on huggingface.co - "huggingface-hub>=0.21.2,<0.23.0", # temporary pin: see https://github.com/huggingface/datasets/issues/6860 + "huggingface-hub>=0.21.2", # Utilities from PyPA to e.g., compare versions "packaging", # To parse YAML metadata from dataset cards