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
This commit is contained in:
@@ -19,7 +19,7 @@ if [[ ! -f "pyproject.toml" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install twine if not already installed
|
# Install twine if not already installed
|
||||||
if ! command -v twine &> /dev/null; then
|
if ! uv pip show twine &> /dev/null; then
|
||||||
echo "Installing twine..."
|
echo "Installing twine..."
|
||||||
uv pip install twine
|
uv pip install twine
|
||||||
fi
|
fi
|
||||||
@@ -62,7 +62,7 @@ if [[ ! -f "$HOME/.pypirc" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Upload using twine
|
# Upload using twine via uv
|
||||||
twine upload --repository gitea dist/*
|
uv run twine upload --repository gitea dist/*
|
||||||
|
|
||||||
echo "Package uploaded successfully to Gitea!"
|
echo "Package uploaded successfully to Gitea!"
|
||||||
|
|||||||
Reference in New Issue
Block a user