From 92c367cfbf7079ec4ee1a4b5986d429357a55bb8 Mon Sep 17 00:00:00 2001 From: N3N Date: Mon, 13 Jan 2025 18:11:43 -0800 Subject: [PATCH] refactor: take build version dynamically for clean build test --- clean_build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clean_build.sh b/clean_build.sh index a367892..f00e84d 100755 --- a/clean_build.sh +++ b/clean_build.sh @@ -1,4 +1,6 @@ rm -rf dist pip uninstall -q --exists-action=w whispr hatch build -pip install -q dist/whispr-$1-py3-none-any.whl +VER=$(ls ./dist/*.whl | sed 's/.*-\([0-9.]*\)-.*/\1/') +echo $VAR +pip install -q dist/whispr-${VER}-py3-none-any.whl