+huggingface-cli (#4163)

This commit is contained in:
Max Howell 2023-11-21 15:22:13 -05:00 committed by GitHub
parent 309b23a27d
commit 974021d239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,21 @@
distributable:
url: https://github.com/huggingface/huggingface_hub/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
display-name: huggingface/cli
# if theres a github then we can parse the versions
versions:
github: huggingface/huggingface_hub
dependencies:
python.org: ~3.11
build:
python-venv.sh {{prefix}}/bin/huggingface-cli
provides:
- bin/huggingface-cli
test:
huggingface-cli --help

View file

@ -2,9 +2,7 @@ cmds:
- pygmentize
# - youtube-dl # we pacakge this ourselves
- openai
- huggingface-cli
- thefuck
args:
pygmentize: [pipx, run, --spec, pygments]
huggingface-cli: pipx run --spec huggingface_hub
...: [pipx, run]