Skip to content

chore(deps): update huggingface-hub requirement from <1.0.0 to <3.0.0 - #79

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/huggingface-hub-lt-3.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/huggingface-hub-lt-3.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown

Updates the requirements on huggingface-hub to permit the latest version.

Release notes

Sourced from huggingface-hub's releases.

[v2.5.0] Token revocation, sandbox network policies & SQL over Hub datasets

🚨 Revoke leaked tokens with hf auth revoke

If a token ever leaks — committed to a repo, pasted in a log, shared in a snippet — you can now revoke it right away with hf auth revoke. Revocation doesn't require being logged in: anyone holding the raw value of a token can revoke it, and the token owner gets notified by email. To rule out footguns, the request is deliberately sent without your own Authorization header, so your active token can never be revoked by mistake. The same is available in Python with the new top-level revoke_tokens() helper, which sends tokens in batches of 1000. Note that the Hub always answers with a generic "revocation requested" message, whether the token existed or not.

>>> hf auth revoke hf_xxx hf_yyy
✓ Revocation requested for 2 token(s)
  count: 2
>>> from huggingface_hub import revoke_tokens
>>> revoke_tokens(["hf_xxx"])

📚 Documentation: hf auth revoke in the CLI guide · revoke_tokens() reference

🌐 Sandbox network policies: no internet access, or an allowlist

Sandboxes can now run without internet access, or with access restricted to an allowlist. Pass network="none" to block all outbound connections, or network={"allow": [...]} with IP ranges, IPs (optionally with a port) and hostnames — for example, to let an agent in a sandbox reach your internal vLLM server and the Hub, and nothing else. The policy is enforced by the sandbox server with seccomp and Landlock, applies to every process the sandbox starts, and cannot be removed from inside the sandbox, even by root. Pools support it per-sandbox too, so one host can run isolated and connected sandboxes side by side. If the server cannot apply the policy (e.g. a pool host started by an older version of huggingface_hub), creation fails with a SandboxError instead of silently returning a connected sandbox.

sbx = Sandbox.create("python:3.12", network="none")  # volumes still work
sbx = Sandbox.create("python:3.12", network={"allow": ["10.0.0.0/8", "203.0.113.10:443", "huggingface.co"]})
agent = pool.create(network="none")  # pools can mix isolated and connected sandboxes
hf sandbox create --network none
hf sandbox create --network 10.0.0.0/8,huggingface.co:443

📚 Documentation: Sandboxes guide

  • [Sandbox] Add network policies: no internet access, or an allowlist by @​Wauplin in #5303

🦆 Query datasets with hf_dataset() in hf datasets sql

hf datasets sql now auto-installs and loads the Hugging Face DuckDB extension, so you can query a dataset with hf_dataset('org/name') instead of hand-building read_parquet(...) URLs against the Dataset Viewer. This is a nice ergonomics win for agents previewing datasets, and as a side effect it also enables writing back to the Hub with COPY ... TO 'hf://datasets/username/dataset-name/...'. The extension requires DuckDB 2.0+; if it cannot be installed (older DuckDB or an unsupported platform), a warning is logged and existing read_parquet workflows keep working unchanged.

>>> hf datasets sql "SELECT * FROM hf_dataset('stanfordnlp/imdb') LIMIT 3"

📚 Documentation: hf datasets sql in the CLI guide

... (truncated)

Commits
  • 58c96d0 Release: v2.5.0
  • 90842db Release: v2.5.0.rc0
  • 9dc578a Type JobStatus.stage and SpaceRuntime.stage as Enum | str (#5440)
  • 4148e97 [Sandbox] Add network policies: no internet access, or an allowlist (#5303)
  • ec35617 [CLI] Add hf auth revoke to revoke leaked tokens (#5389)
  • f088190 [Download] Fix concurrent downloads into local_dir (#5353)
  • b2e5168 [Jobs] Split script path on both separators for default Job name (#5388)
  • 998328e [HTTP] Raise EgressLimitError on 402 EgressLimitReached (#5434)
  • 8c45f94 [CLI] List global formatting flags in the generated CLI reference (#5438)
  • 122611b [HfFileSystem] Fix info() on a stale bucket listing (#5384)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [huggingface-hub](https://github.com/huggingface/huggingface_hub) to permit the latest version.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](huggingface/huggingface_hub@v0.0.1...v2.5.0)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-version: 2.5.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added chore Maintenance tasks, dependency updates, and housekeeping dependencies Pull requests that update a dependency file labels Nov 30, 2026
@github-actions github-actions Bot added ci CI/CD and workflow changes documentation Improvements or additions to documentation or runbooks labels Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks, dependency updates, and housekeeping ci CI/CD and workflow changes dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation or runbooks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants