dependabot[bot] opened a new pull request, #4582: URL: https://github.com/apache/iceberg-python/pull/4582
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 2.3.0 to 2.4.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.4.0] Copy files into Buckets with <code>HfFileSystem</code>, outdated CLI extension hints</h2> <h2>🪣 Copy files into Buckets with <code>HfFileSystem</code></h2> <p><code>HfFileSystem</code> raised <code>NotImplementedError</code> on any copy involving a Bucket. Copying into a Bucket now works from the same Bucket, from another Bucket, or from a model, dataset or Space repo. Files stored with Xet are copied on the Hub by hash, so nothing is downloaded. Other repo files are downloaded and then uploaded to the Bucket. fsspec moves a file by copying it and deleting the source, so <code>mv</code> and <code>rename</code> now work inside a Bucket too.</p> <pre lang="python"><code>>>> from huggingface_hub import hffs >>> hffs.cp_file("buckets/my-username/my-bucket/data/train.csv", "buckets/my-username/my-bucket/backup/train.csv") >>> hffs.mv("buckets/my-username/my-bucket/data/tmp.csv", "buckets/my-username/my-bucket/data/final.csv") >>> hffs.copy("buckets/my-username/my-bucket/data", "buckets/my-username/other-bucket/data", recursive=True) >>> hffs.cp_file("datasets/my-username/my-dataset/train.parquet", "buckets/my-username/my-bucket/train.parquet") </code></pre> <p>Copying from a Bucket to a repo is not supported yet.</p> <ul> <li>[HfFileSystem] Support same-bucket file copies by <a href="https://github.com/ankitkumartiwari-web"><code>@ankitkumartiwari-web</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5080">#5080</a></li> </ul> <h2>🧩 See when a CLI extension is outdated</h2> <p><code>hf extensions list</code> only showed when each extension was installed, so there was no way to know that an update was available. It now has a <code>VERSION</code> column (the commit the extension was installed from) and a <code>LATEST</code> column, plus a hint naming the outdated extensions. Running an outdated extension also prints a hint, at most once a day. To stay within GitHub's rate limits, <code>hf</code> looks up the latest commit of each extension at most once a day. Set <code>HF_HUB_DISABLE_UPDATE_CHECK=1</code> to turn these checks off.</p> <!-- raw HTML omitted --> <p><code>hf extensions update</code> also repairs Python extensions that no longer start. After a Homebrew upgrade removed the Python an extension was installed with, running it failed with <code>dyld: Library not loaded</code>, and <code>hf extensions update</code> said it was already up to date. It now recreates the extension's virtual environment when its Python doesn't start, even if no newer commit exists.</p> <pre lang="console"><code>$ hf extensions update speedtest Creating virtualenv at: ~/.local/share/hf/extensions/hf-speedtest/venv ✓ Extension updated </code></pre> <ul> <li>[CLI] Show extension versions and hint when one is outdated by <a href="https://github.com/hanouticelina"><code>@hanouticelina</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5269">#5269</a></li> <li>[CLI] Make hf extensions update repair broken Python extensions by <a href="https://github.com/hanouticelina"><code>@hanouticelina</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5270">#5270</a></li> </ul> <h2>🔧 Other QoL improvements</h2> <ul> <li>Add auth hint to HfFileSystem "repository not found" error by <a href="https://github.com/davanstrien"><code>@davanstrien</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5258">#5258</a>. A private repo accessed without a token gave the same <code>(repository not found)</code> error as a typo in the repo name. The error now also tells you to check that you are authenticated.</li> </ul> <h2>🐛 Bug and typo fixes</h2> <ul> <li>[Webhooks] Use "discussion" domain and default to all domains by <a href="https://github.com/hanouticelina"><code>@hanouticelina</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5263">#5263</a>. <code>hf webhooks create</code> failed unless you passed <code>--domain repo</code>, and watching discussions was not possible because the accepted value was <code>discussions</code> instead of <code>discussion</code>. <code>create_webhook</code> now watches both domains when <code>domains</code> is omitted.</li> <li>Validate filename against path traversal in try_to_load_from_cache by <a href="https://github.com/bodapatisaikrishna"><code>@bodapatisaikrishna</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5249">#5249</a>. Filenames with <code>../</code> or absolute paths could resolve outside the cache folder. They are now rejected, as in <code>hf_hub_download</code>.</li> <li>[HfFileSystem] Return file info from find(detail=True) on a file path by <a href="https://github.com/ontdepart"><code>@ontdepart</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5246">#5246</a>. It returned an empty dict, which broke datatrove readers pointing at a single <code>hf://</code> file.</li> <li>[Cache] Skip local-dir metadata when verifying checksums by <a href="https://github.com/alphasafal"><code>@alphasafal</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5257">#5257</a>. <code>hf cache verify --local-dir</code> reported the <code>.cache/huggingface/</code> metadata as extra files, so <code>--fail-on-extra-files</code> failed on every clean download.</li> <li>[CLI] Don't crash hf cache verify on Windows redirected stdout by <a href="https://github.com/Sonica-B"><code>@Sonica-B</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5255">#5255</a>. When output was piped or redirected, <code>hf cache verify</code> crashed with <code>UnicodeEncodeError</code> instead of listing the files that failed verification.</li> </ul> <h2>📖 Documentation</h2> <ul> <li>[Docs] Fix docstring examples that fail when copy-pasted by <a href="https://github.com/tkr109"><code>@tkr109</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5238">#5238</a></li> <li>[Docs] Await endpoint batch inference before pausing by <a href="https://github.com/emrehangorgec"><code>@emrehangorgec</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5247">#5247</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/3739729b86489e4ae28b5a62e622be320b141493"><code>3739729</code></a> Release: v2.4.0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/454824db12893db152aa27f1df4df36a8fe60259"><code>454824d</code></a> Release: v2.4.0.rc0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/178e1a1797858724c79fd9d12d79d0902d730497"><code>178e1a1</code></a> [HfFileSystem] Support same-bucket file copies (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5080">#5080</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/db254a305a29370d2e08859000d0d40c2897c8db"><code>db254a3</code></a> Docs: build English only, other languages are machine-translated (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5276">#5276</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/4a993357d524028204216b4307ed4d97b8111818"><code>4a99335</code></a> Bump the actions group with 7 updates (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5268">#5268</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/70de21cf3bdebb37151a6f5bcf217594d24e175f"><code>70de21c</code></a> [CLI] Make hf extensions update repair broken Python extensions (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5270">#5270</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/b763f1331e14c11e4e4776ffb3f46640c0c3f207"><code>b763f13</code></a> [CLI] Show extension versions and hint when one is outdated (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5269">#5269</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/a43cbe33148ae6f7ca27568922c1968b69e822d8"><code>a43cbe3</code></a> [Webhooks] Use "discussion" domain and default to all domains (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5263">#5263</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/e255f041d588538d4a1bd9294eafdaf57311862f"><code>e255f04</code></a> [Cache] Skip local-dir metadata when verifying checksums (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5257">#5257</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/289492b307df52ae24c72a3180866b791c9672ba"><code>289492b</code></a> [CI] Drop urllib3<2.0 test pin broken by vcrpy 9 (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5262">#5262</a>)</li> <li>Additional commits viewable in <a href="https://github.com/huggingface/huggingface_hub/compare/v2.3.0...v2.4.0">compare view</a></li> </ul> </details> <br /> [](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]
