From c5b69855c2137dbad6cd31e6ad46d497386685a5 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Mon, 11 Aug 2025 14:51:19 +0200 Subject: [PATCH] fix: Use uv to run twine in build_and_upload.sh script - Fix twine execution to use 'uv run twine' instead of direct execution - Update twine installation check to use 'uv pip show' instead of 'command -v' - Ensure script is executable --- scripts/build_and_upload.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_and_upload.sh b/scripts/build_and_upload.sh index 1df6aee..b3b6839 100755 --- a/scripts/build_and_upload.sh +++ b/scripts/build_and_upload.sh @@ -19,7 +19,7 @@ if [[ ! -f "pyproject.toml" ]]; then fi # Install twine if not already installed -if ! command -v twine &> /dev/null; then +if ! uv pip show twine &> /dev/null; then echo "Installing twine..." uv pip install twine fi @@ -62,7 +62,7 @@ if [[ ! -f "$HOME/.pypirc" ]]; then exit 1 fi -# Upload using twine -twine upload --repository gitea dist/* +# Upload using twine via uv +uv run twine upload --repository gitea dist/* echo "Package uploaded successfully to Gitea!"