summaryrefslogtreecommitdiffstats
path: root/shell/pypi-publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shell/pypi-publish.sh')
-rw-r--r--shell/pypi-publish.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/pypi-publish.sh b/shell/pypi-publish.sh
new file mode 100644
index 000000000..7ea3fa2d9
--- /dev/null
+++ b/shell/pypi-publish.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# Script to publush PyPI artifacts
+set -e -x -o pipefail
+
+virtualenv /tmp/v/twine
+source "/tmp/v/twine/bin/activate"
+
+pip install twine
+
+cd "$WORKSPACE/$TOX_DIR"
+twine upload -r $PYPI_SERVER dist/*