dependabot[bot] opened a new pull request, #4056:
URL: https://github.com/apache/iceberg-python/pull/4056

   Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 
1.30.0 to 2.0.0.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/huggingface/huggingface_hub/releases";>huggingface-hub's
 releases</a>.</em></p>
   <blockquote>
   <h2>[v2.0.0] The httpx2 release</h2>
   <p>See <a 
href="https://huggingface.co/docs/huggingface_hub/main/en/concepts/migration_v2";>MIGRATION
 GUIDE</a> in docs.</p>
   <h2>đź’” Breaking Change: HTTP stack moves to <code>httpx2</code></h2>
   <p>See migration plan in <a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4802";>huggingface/huggingface_hub#4802</a>
 .</p>
   <p><code>huggingface_hub</code> v2.0 replaces its HTTP dependency with <a 
href="https://httpx2.pydantic.dev/";><code>httpx2</code></a>: clients and 
transport exceptions now come from <code>httpx2</code>/<code>httpcore2</code> 
instead of <code>httpx</code>/<code>httpcore</code>. Custom client factories 
(via <code>set_client_factory</code> / <code>set_async_client_factory</code>) 
and any <code>except</code> clauses catching transport errors must use 
<code>httpx2</code> types. For code that must support both v1.x (starting with 
v1.30.0) and v2.x, import the HTTP module from 
<code>huggingface_hub.utils</code>:</p>
   <pre lang="python"><code>from huggingface_hub.utils import get_session, httpx
   <p>try:
   response = get_session().get(&quot;<a 
href="https://huggingface.co/api/models/gpt2";>https://huggingface.co/api/models/gpt2</a>&quot;)
   response.raise_for_status()
   except httpx.HTTPError:
   ...
   </code></pre></p>
   <p>Note that <code>httpx2</code> uses the operating system's certificate 
trust store by default (custom CA bundles via <code>SSL_CERT_FILE</code> / 
<code>SSL_CERT_DIR</code> still work), logging configuration should target the 
<code>httpx2</code> and <code>httpcore2</code> loggers, and the 
<code>oauth</code> extra now requires <code>authlib&gt;=1.8.0</code>.</p>
   <ul>
   <li>[Release] Prepare huggingface_hub 2.0 by <a 
href="https://github.com/Wauplin";><code>@​Wauplin</code></a> in <a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4994";>#4994</a></li>
   <li><a 
href="https://redirect.github.com/huggingface/huggingface_hub/pull/4921";>huggingface/huggingface_hub#4921</a></li>
   </ul>
   <h2>đź’” Breaking Change: deprecated APIs are removed</h2>
   <p>This release also removes all APIs deprecated in 1.x:</p>
   <ul>
   <li><code>upload_large_folder</code> / 
<code>HfApi.upload_large_folder</code> → use <code>upload_folder</code></li>
   <li><code>duplicate_space</code> → use <code>duplicate_repo</code></li>
   <li><code>request_space_storage</code> / <code>delete_space_storage</code> → 
use the volume APIs (<code>set_space_volumes</code>, 
<code>delete_space_volumes</code>)</li>
   <li><code>repo_type_and_id_from_hf_id</code> → use 
<code>parse_hf_uri</code></li>
   <li><code>InferenceEndpointType.PROTECTED</code> → use 
<code>AUTHENTICATED</code> 
(<code>create_inference_endpoint(type=&quot;protected&quot;)</code> now raises 
<code>ValueError</code>)</li>
   <li><code>list_models(model_name=...)</code> → use 
<code>list_models(search=...)</code></li>
   <li><code>create_repo</code> / 
<code>duplicate_repo(space_storage=...)</code> → use 
<code>space_volumes</code></li>
   <li><code>text_generation(stop_sequences=...)</code> → use 
<code>stop</code></li>
   <li>Boolean <code>InferenceClient(token=...)</code> → pass a token string or 
<code>None</code></li>
   </ul>
   <p>On the CLI side, the following entry points and options are gone: 
<code>huggingface-cli</code> (use <code>hf</code>), <code>hf repo</code> and 
<code>hf repo-files delete</code> (use <code>hf repos</code> and <code>hf repos 
delete-files</code>), <code>hf upload-large-folder</code> (use <code>hf 
upload</code>), <code>hf repos create/duplicate --storage</code> (use 
<code>--volume</code>), <code>hf jobs ps</code> and <code>hf jobs scheduled ps 
-f/--filter</code> (use <code>--status</code>/<code>--label</code>), and 
<code>hf skills add/update --claude</code> (Claude Code installation is now 
automatic).</p>
   <p>A migration guide covering all of this is available at <a 
href="https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/concepts/migration_v2.md";>https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/concepts/migration_v2.md</a>.</p>
   <ul>
   <li>[Release] Prepare huggingface_hub 2.0 by <a 
href="https://github.com/Wauplin";><code>@​Wauplin</code></a> in <a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4994";>#4994</a></li>
   <li><a 
href="https://redirect.github.com/huggingface/huggingface_hub/pull/4955";>huggingface/huggingface_hub#4955</a></li>
   <li><a 
href="https://redirect.github.com/huggingface/huggingface_hub/pull/4971";>huggingface/huggingface_hub#4971</a></li>
   <li><a 
href="https://redirect.github.com/huggingface/huggingface_hub/pull/4985";>huggingface/huggingface_hub#4985</a></li>
   </ul>
   <h2>🏗️ Internal</h2>
   <ul>
   <li>[CI] Support major (pre-)releases in release workflow by <a 
href="https://github.com/Wauplin";><code>@​Wauplin</code></a> in <a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4991";>#4991</a></li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/97c5f5f2030c2df01b60548f7d357970a106cd7d";><code>97c5f5f</code></a>
 Release: v2.0.0</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/e2d609e5a23cb8aa14e5b65f81258f34189bb06a";><code>e2d609e</code></a>
 Release: v2.0.0.rc0</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/89ae51f5451bfed07a7d0dc702ad99ec88052f5a";><code>89ae51f</code></a>
 unbump</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/9f51867e20abd5daab5c0f8d433b64d24e6c1f2d";><code>9f51867</code></a>
 [Release] Prepare huggingface_hub 2.0 (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4994";>#4994</a>)</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/c2e6e0a81097d70f00a3ddf5a87df32d2449c57b";><code>c2e6e0a</code></a>
 Post-release: bump version to 1.34.0.dev0 (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4993";>#4993</a>)</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/fa26f3458a712c2bc273768c1711d7381f6b9db5";><code>fa26f34</code></a>
 [CI] Support major (pre-)releases in release workflow (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4991";>#4991</a>)</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/ac3ed2f7ea0900e8cff6a18f8b5ea6290bb9ec61";><code>ac3ed2f</code></a>
 [Xet] Show Validating progress during shard finalization (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4478";>#4478</a>)</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/b904b94fc08e6dd72107c1c2c93f326639338533";><code>b904b94</code></a>
 Apply the repo_id length limit to the namespace as well (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4988";>#4988</a>)</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/1e0c30576b4026155aaf5cd3a12aacecec4e6352";><code>1e0c305</code></a>
 Send PrivateLink config under privateService in create_inference_endpoint (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4";>#4</a>...</li>
   <li><a 
href="https://github.com/huggingface/huggingface_hub/commit/da5e2441d56a1967db68833fccd2af0679049d57";><code>da5e244</code></a>
 Scope GITHUB_TOKEN permissions per job (<a 
href="https://redirect.github.com/huggingface/huggingface_hub/issues/4982";>#4982</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/huggingface/huggingface_hub/compare/v1.30.0...v2.0.0";>compare
 view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=huggingface-hub&package-manager=uv&previous-version=1.30.0&new-version=2.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   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-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   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)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to