Skip to content

Modernize: CI, Julia 1.10, huggingface_hub-compatible cache, token auth, JSON.jl (v0.2.0) - #4

Merged
CarloLucibello merged 3 commits into
masterfrom
cl/modernize
Oct 23, 2026
Merged

CarloLucibello merged 3 commits into
masterfrom
cl/modernize

Conversation

@CarloLucibello

Copy link
Copy Markdown
Member

Brings the package and its CI up to date. This is a breaking release, v0.2.0; the full list is in NEWS.md.

CI

  • Tests on Julia min (1.10), 1 and pre, plus 1 on Windows and macOS. Docs build in a separate workflow (Documenter 1).
  • Dependabot for GitHub Actions and Julia packages replaces CompatHelper.

Package

  • The download cache uses the same layout as Python huggingface_hub (~/.cache/huggingface/hub), so files are shared with Python. Checked against huggingface_hub 2.3.0: scan_cache_dir reports no warnings, and each side reads the other's downloads.
  • Login takes an access token (HF_TOKEN or $HF_HOME/token) instead of a username and password, which the Hub no longer accepts.
  • JSON.jl 1.x replaces JSON3, which is deprecated in General. Results now have String keys; dot access works as before.
  • Dependencies: JSON3, OhMyArtifacts, LibGit2, Pkg, SHA and Dates are replaced by JSON and ProgressMeter.
  • HF_* environment variables, offline fallback to the cache, and pagination up to limit.
  • Fixes: repo_type = "spaces" threw, and filenames, revisions and query parameters were not URL-escaped.
  • Tests are updated to the current Hub API, and Aqua is added. 218 pass on Julia 1.10 and 1.13 locally.

The public functions Transformers.jl calls keep their signatures. It only needs its compat bound raised to HuggingFaceApi = "0.1, 0.2".

🤖 Generated with Claude Code

CarloLucibello and others added 3 commits October 23, 2026 11:20
- CI on Julia min/1/pre (ubuntu) and 1 (windows, macOS), current action versions, julia-actions/cache
- Separate Documentation workflow, Documenter 1, no checked-in docs Manifest
- Dependabot for GitHub Actions and Julia packages, replacing CompatHelper

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cache downloads with the huggingface_hub layout (shared with Python) instead of OhMyArtifacts
- Token-based login (HF_TOKEN, $HF_HOME/token) instead of the removed username/password flow
- JSON.jl 1.x instead of the deprecated JSON3.jl
- ProgressMeter instead of Pkg internals for the progress bar
- Support HF_HOME, HF_HUB_CACHE, HF_TOKEN_PATH, HF_ENDPOINT, HF_HUB_OFFLINE
- Follow pagination up to `limit`; URL-escape filenames, revisions and queries
- Fix repo_type = "spaces", accept singular repo types
- Require Julia 1.10; add Aqua; update tests to the current Hub API

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@CarloLucibello
CarloLucibello merged commit f47e39e into master Oct 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant