From: Jessica Wagantall Date: Thu, 26 Apr 2018 22:31:08 +0000 (-0700) Subject: Fix Pypi script Python version X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=75cf6df1962f10426d80922b529d1df72389c7da;p=ci-management.git Fix Pypi script Python version Fix Pypi build and publish scripts to run virtualenv with the correct PYTHON_VERSION specified in the job templates. Change-Id: I71f61775380ae56c204854ddde254b467e5e16f3 Issue-ID: Issue-ID: CIMAN-137 Signed-off-by: Jessica Wagantall --- diff --git a/shell/pypi-dist-build.sh b/shell/pypi-dist-build.sh index 7733f6242..bc3d4ae65 100644 --- a/shell/pypi-dist-build.sh +++ b/shell/pypi-dist-build.sh @@ -2,7 +2,7 @@ # Script to build PyPI artifacts set -e -x -o pipefail -virtualenv /tmp/v/twine +virtualenv -p "$PYTHON_VERSION" /tmp/v/twine source "/tmp/v/twine/bin/activate" pip install twine wheel diff --git a/shell/pypi-publish.sh b/shell/pypi-publish.sh index 7ea3fa2d9..2510ed38b 100644 --- a/shell/pypi-publish.sh +++ b/shell/pypi-publish.sh @@ -2,7 +2,7 @@ # Script to publush PyPI artifacts set -e -x -o pipefail -virtualenv /tmp/v/twine +virtualenv -p "$PYTHON_VERSION" /tmp/v/twine source "/tmp/v/twine/bin/activate" pip install twine