From 295975d522aaa584bc3dd79c043b1a6003977f22 Mon Sep 17 00:00:00 2001 From: Vanessa Rene Valderrama Date: Tue, 27 Feb 2018 15:10:17 -0800 Subject: Configure PyPI releases This changes adds the following functionality for PyPI releases - macros - A PyPI server macro - scripts - A script to build artifacts - A script to publish artifacts - templates - Templates for release - jobs - Jobs for release - Nexus3 staging - Nexus3 release - PyPI index will be added at a later date Issue-ID: CIMAN-137 Change-Id: I53522ed2fa2f462afebaac94c44fa2a9979e9c2a Signed-off-by: Vanessa Rene Valderrama Signed-off-by: Jessica Wagantall Signed-off-by: Jeremy Phelps --- shell/pypi-publish.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shell/pypi-publish.sh (limited to 'shell/pypi-publish.sh') 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/* -- cgit 1.2.3-korg