Skip to content

Commit 1b64634

Browse files
committed
Fix: Fix some in pypi deploy
1 parent c080a46 commit 1b64634

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

ci/scripts/pypi_deploy.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,12 @@
1717
set -euo pipefail
1818

1919
sudo apt-get update -y
20-
sudo apt-get install -y twine python3-setuptools
21-
twine upload --repository-url https://test.pypi.org/legacy/ -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*.whl dist/*.tar.gz
20+
sudo apt-get install -y python3-setuptools python3-pip
21+
sudo pip3 install twine
22+
23+
function upload_pypi() {
24+
twine upload --repository-url https://test.pypi.org/legacy/ -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} $@
25+
}
26+
27+
${BUILDER_SDIST:-false} && upload_pypi dist/*.tar.gz
28+
${BUILDER_WHEEL:-false} && upload_pypi dist/*.whl

0 commit comments

Comments
 (0)