Skip to content

Python: Build(deps): Bump huggingface-hub from 1.20.1 to 1.21.0 in /python - #6738

Merged
Tao Chen (TaoChenOSU) merged 1 commit into
mainfrom
dependabot/uv/python/huggingface-hub-1.21.0
Jun 25, 2026
Merged

Python: Build(deps): Bump huggingface-hub from 1.20.1 to 1.21.0 in /python#6738
Tao Chen (TaoChenOSU) merged 1 commit into
mainfrom
dependabot/uv/python/huggingface-hub-1.21.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 25, 2026

Copy link
Copy Markdown
Contributor

Bumps huggingface-hub from 1.20.1 to 1.21.0.

Release notes

Sourced from huggingface-hub's releases.

[v1.21.0] Jobs filtering & pagination

📊 Jobs listing revamped: filter, paginate, and ls instead of ps

The Jobs listing API and CLI have been overhauled with server-side filtering, proper pagination, and a CLI rename that aligns with the rest of hf. list_jobs() now accepts status and labels parameters that push filtering to the server, and returns a lazy iterator (matching list_models, list_datasets, etc.) so large result sets are fetched page by page. On the CLI side, hf jobs ps has been renamed to hf jobs ls for consistency with hf repos ls, hf models ls, and friends — ps and list still work as aliases.

⚠️ Breaking changes:

  • list_jobs() now returns an Iterable[JobInfo] instead of list[JobInfo]. If you indexed the result (jobs[0]), wrap it with list(...).
  • -f/--filter in hf jobs ls is deprecated. Use --status and --label instead. Glob patterns (data-*), negation (key!=value), and filtering by id/image/command are no longer supported.
from huggingface_hub import list_jobs
Filter by status and labels
list_jobs(status=["RUNNING", "SCHEDULING"], labels={"env": "prod"})
Iterate lazily
for job in list_jobs():
print(job.id)
Materialize all results
all_jobs = list(list_jobs())

# Filter by status and labels
hf jobs ls --status running,scheduling --label env=prod --label team=ml
Paginate with --limit
hf jobs ls -a --limit 500
hf jobs ls -a --limit 0  # no limit

  • [Jobs] Add stage/label filtering to list_jobs API and CLI by @​Wauplin in #4395
  • [Jobs] Paginate list_jobs and add --limit to hf jobs ps by @​Wauplin in #4403
  • [CLI] [Jobs] Rename job listing to 'hf jobs ls' (and keep 'hf jobs ps' alias) by @​Wauplin in #4409

📚 Documentation: CLI guide, Jobs guide

🐛 Fix circular import on from huggingface_hub import login

A regression introduced in v1.20.0 caused from huggingface_hub import login to raise an ImportError on a fresh interpreter, due to a circular dependency between _oauth_device and utils._http. The fix moves _oauth_device.py into the utils layer so all imports resolve downward, eliminating the cycle. No lazy imports or workarounds required.

🔧 Other QoL Improvements

📖 Documentation

... (truncated)

Commits
  • aea9b9d Release: v1.21.0
  • 2e2ed56 Release: v1.21.0.rc0
  • 4bd4c90 [CLI] [Jobs] Rename job listing to 'hf jobs ls' (and keep 'hf jobs ps' alias)...
  • fa3eb45 [Jobs] Paginate list_jobs and add --limit to hf jobs ps (#4403)
  • ecfd4c5 [CLI] Fix ty/mypy errors with click 8.4.2 (#4408)
  • 341469f Update hardware flavor enums (automated commit) (#4406)
  • 2fbcdfe [i18n-HI] Add Hindi translation for guides overview (#4405)
  • 5bc6bfa [Jobs] Add stage/label filtering to list_jobs API and CLI (#4395)
  • d991f09 Fix IndexError in filter_repo_objects on an empty pattern (#4402)
  • 0df783f Retry requests on httpx.RemoteProtocolError (#4398)
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 1.20.1 to 1.21.0.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](huggingface/huggingface_hub@v1.20.1...v1.21.0)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-version: 1.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Usage: [Issues, PRs], Target: dependencies in the project python Usage: [Issues, PRs], Target: Python labels Jun 25, 2026
Copilot AI review requested due to automatic review settings June 25, 2026 14:34
@dependabot dependabot Bot added python Usage: [Issues, PRs], Target: Python dependencies Usage: [Issues, PRs], Target: dependencies in the project labels Jun 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@github-actions github-actions Bot changed the title Build(deps): Bump huggingface-hub from 1.20.1 to 1.21.0 in /python Python: Build(deps): Bump huggingface-hub from 1.20.1 to 1.21.0 in /python Jun 25, 2026
@TaoChenOSU
Tao Chen (TaoChenOSU) added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit d97bc4f Jun 25, 2026
44 checks passed
@dependabot
dependabot Bot deleted the dependabot/uv/python/huggingface-hub-1.21.0 branch June 25, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Usage: [Issues, PRs], Target: dependencies in the project python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants