From 974021d2396d81191cdc11b31e1a0d8c0c0e39cd Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 21 Nov 2023 15:22:13 -0500 Subject: [PATCH] +huggingface-cli (#4163) --- projects/huggingface.co/package.yml | 21 +++++++++++++++++++++ projects/pypa.github.io/pipx/provider.yml | 2 -- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 projects/huggingface.co/package.yml diff --git a/projects/huggingface.co/package.yml b/projects/huggingface.co/package.yml new file mode 100644 index 00000000..0cea7d6c --- /dev/null +++ b/projects/huggingface.co/package.yml @@ -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 there’s 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 diff --git a/projects/pypa.github.io/pipx/provider.yml b/projects/pypa.github.io/pipx/provider.yml index abaf8644..b2c8df91 100644 --- a/projects/pypa.github.io/pipx/provider.yml +++ b/projects/pypa.github.io/pipx/provider.yml @@ -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]