huggingface: Use new brewkit python venv machinery

This commit is contained in:
Max Howell 2024-01-04 09:11:12 +00:00
parent bc08c8228a
commit d64877c52a

View file

@ -4,15 +4,19 @@ distributable:
display-name: huggingface/cli display-name: huggingface/cli
# if theres a github then we can parse the versions
versions: versions:
github: huggingface/huggingface_hub github: huggingface/huggingface_hub
dependencies: dependencies:
python.org: ~3.11 pkgx.sh: ^1
build: build:
python-venv.sh {{prefix}}/bin/huggingface-cli dependencies:
python.org: ~3.11
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} huggingface-cli
provides: provides:
- bin/huggingface-cli - bin/huggingface-cli