From d64877c52a02e767ce843ce2c2acb6fa8082a0dc Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 4 Jan 2024 09:11:12 +0000 Subject: [PATCH] huggingface: Use new brewkit python venv machinery --- projects/huggingface.co/package.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/projects/huggingface.co/package.yml b/projects/huggingface.co/package.yml index 0cea7d6c..619e8f9a 100644 --- a/projects/huggingface.co/package.yml +++ b/projects/huggingface.co/package.yml @@ -4,15 +4,19 @@ distributable: 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 + pkgx.sh: ^1 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: - bin/huggingface-cli