From 9d7088c3517c18fd6a96cc9f6f1e34f1b7716fc4 Mon Sep 17 00:00:00 2001 From: Amit Patankar Date: Thu, 28 Jan 2021 10:13:32 -0800 Subject: [PATCH] Install twine for MacOS nightly releases. PiperOrigin-RevId: 354337564 Change-Id: Ib3709f2b6499d9427262076890c7da2399770a77 --- tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh | 1 + tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh | 1 + tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh index 975aaee187d..9567eb72a04 100644 --- a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh +++ b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py36.sh @@ -57,6 +57,7 @@ for f in $(ls pip_pkg/tf_nightly*dev*macosx*.whl); do # Upload the PIP package if whl test passes. if [ ${RETVAL} -eq 0 ]; then echo "Basic PIP test PASSED, Uploading package: ${f}" + python -m pip install twine python -m twine upload -r pypi-warehouse "${f}" else echo "Basic PIP test FAILED, will not upload ${f} package" diff --git a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh index 3c4d1b051e0..bfb0774febf 100644 --- a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh +++ b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py37.sh @@ -57,6 +57,7 @@ for f in $(ls pip_pkg/tf_nightly*dev*macosx*.whl); do # Upload the PIP package if whl test passes. if [ ${RETVAL} -eq 0 ]; then echo "Basic PIP test PASSED, Uploading package: ${f}" + python -m pip install twine python -m twine upload -r pypi-warehouse "${f}" else echo "Basic PIP test FAILED, will not upload ${f} package" diff --git a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh index e2ec3265196..c5f3df83d42 100644 --- a/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh +++ b/tensorflow/tools/ci_build/nightly_release/macos/cpu_py38.sh @@ -57,6 +57,7 @@ for f in $(ls pip_pkg/tf_nightly*dev*macosx*.whl); do # Upload the PIP package if whl test passes. if [ ${RETVAL} -eq 0 ]; then echo "Basic PIP test PASSED, Uploading package: ${f}" + python -m pip install twine python -m twine upload -r pypi-warehouse "${f}" else echo "Basic PIP test FAILED, will not upload ${f} package"