We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c080a46 commit 1b64634Copy full SHA for 1b64634
1 file changed
ci/scripts/pypi_deploy.sh
@@ -17,5 +17,12 @@
17
set -euo pipefail
18
19
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
+sudo apt-get install -y python3-setuptools python3-pip
+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