Skip to content

보안(deps): Update huggingface-hub requirement from <2,>=0.20.0 to >=0.20.0,<3 - #173

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/huggingface-hub-gte-0.20.0-and-lt-3
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/huggingface-hub-gte-0.20.0-and-lt-3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 1, 2026

Copy link
Copy Markdown
Contributor

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

Release notes

Sourced from huggingface-hub's releases.

[v2.0.0] The httpx2 release

See MIGRATION GUIDE in docs.

💔 Breaking Change: HTTP stack moves to httpx2

See migration plan in huggingface/huggingface_hub#4802 .

huggingface_hub v2.0 replaces its HTTP dependency with httpx2: clients and transport exceptions now come from httpx2/httpcore2 instead of httpx/httpcore. Custom client factories (via set_client_factory / set_async_client_factory) and any except clauses catching transport errors must use httpx2 types. For code that must support both v1.x (starting with v1.30.0) and v2.x, import the HTTP module from huggingface_hub.utils:

from huggingface_hub.utils import get_session, httpx
try:
response = get_session().get("https://huggingface.co/api/models/gpt2")
response.raise_for_status()
except httpx.HTTPError:
...

Note that httpx2 uses the operating system's certificate trust store by default (custom CA bundles via SSL_CERT_FILE / SSL_CERT_DIR still work), logging configuration should target the httpx2 and httpcore2 loggers, and the oauth extra now requires authlib>=1.8.0.

💔 Breaking Change: deprecated APIs are removed

This release also removes all APIs deprecated in 1.x:

  • upload_large_folder / HfApi.upload_large_folder → use upload_folder
  • duplicate_space → use duplicate_repo
  • request_space_storage / delete_space_storage → use the volume APIs (set_space_volumes, delete_space_volumes)
  • repo_type_and_id_from_hf_id → use parse_hf_uri
  • InferenceEndpointType.PROTECTED → use AUTHENTICATED (create_inference_endpoint(type="protected") now raises ValueError)
  • list_models(model_name=...) → use list_models(search=...)
  • create_repo / duplicate_repo(space_storage=...) → use space_volumes
  • text_generation(stop_sequences=...) → use stop
  • Boolean InferenceClient(token=...) → pass a token string or None

On the CLI side, the following entry points and options are gone: huggingface-cli (use hf), hf repo and hf repo-files delete (use hf repos and hf repos delete-files), hf upload-large-folder (use hf upload), hf repos create/duplicate --storage (use --volume), hf jobs ps and hf jobs scheduled ps -f/--filter (use --status/--label), and hf skills add/update --claude (Claude Code installation is now automatic).

A migration guide covering all of this is available at https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/concepts/migration_v2.md.

🏗️ Internal

... (truncated)

Commits
  • 97c5f5f Release: v2.0.0
  • e2d609e Release: v2.0.0.rc0
  • 89ae51f unbump
  • 9f51867 [Release] Prepare huggingface_hub 2.0 (#4994)
  • c2e6e0a Post-release: bump version to 1.34.0.dev0 (#4993)
  • fa26f34 [CI] Support major (pre-)releases in release workflow (#4991)
  • ac3ed2f [Xet] Show Validating progress during shard finalization (#4478)
  • b904b94 Apply the repo_id length limit to the namespace as well (#4988)
  • 1e0c305 Send PrivateLink config under privateService in create_inference_endpoint (#4...
  • da5e244 Scope GITHUB_TOKEN permissions per job (#4982)
  • 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)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file security 보안 업데이트 (Dependabot) labels Oct 1, 2026
@dependabot
dependabot Bot requested a review from eddmpython as a code owner October 1, 2026 00:11
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file security 보안 업데이트 (Dependabot) labels Oct 1, 2026
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.20.0...v2.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@eddmpython
eddmpython force-pushed the dependabot/pip/huggingface-hub-gte-0.20.0-and-lt-3 branch from 06f98ff to 6ba5b28 Compare October 12, 2026 13:40
eddmpython added a commit that referenced this pull request Oct 12, 2026
Dependabot PR #172, #173 의 범위 완화를 uv.lock 의 requires-dist 와 함께 반영한다. PR 을 그대로 병합하면
pyproject 와 lock 이 어긋나, --locked 없이 uv sync 하는 데이터 파이프라인이 러너에서 다시 해석해
huggingface-hub 2.x 로 올라갈 수 있다. 잠긴 버전(huggingface-hub 0.36.2, filelock 3.x)은 그대로다.

- huggingface-hub 2.x 는 HTTP 스택을 httpx2 로 바꿨다. src 에는 requests 직접 사용과 HTTP 백엔드 설정이
  없고, 2.2.0 에서 huggingface_hub.utils 오류 import, 404 -> EntryNotFoundError(response.status_code),
  HfFileSystem 열기, list_repo_tree, retryHfCall 의 429 판정을 실제 HF 로 확인했다. PR #173 의 test-fast 는
  신선 해석으로 huggingface_hub 2.2.0 을 깔고 8,420 통과했다.
- filelock 4.1.1 에서 FileLock·Timeout 사용(mappingLedger, secrets)이 같게 동작한다.

검증: uv lock --check 통과, lock diff 는 specifier 2 줄.
@eddmpython

Copy link
Copy Markdown
Owner

같은 범위 변경(huggingface-hub <3)을 uv.lock 의 requires-dist 와 함께 4b284cf 로 반영했습니다. 이 PR 을 그대로 병합하면 pyproject 와 lock 이 어긋나 --locked 없는 파이프라인 uv sync 가 러너에서 다시 해석합니다. huggingface_hub 2.2.0 호환은 이 PR 의 test-fast(신선 해석, 8,420 통과)와 실제 HF 호출로 확인했습니다.

@eddmpython eddmpython closed this Oct 12, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/pip/huggingface-hub-gte-0.20.0-and-lt-3 branch October 12, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file security 보안 업데이트 (Dependabot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant