From 8eeac86f972b10b42623d8c083e0f5432f0cb462 Mon Sep 17 00:00:00 2001
From: Goncalo <goncalo.magno@gmail.com>
Date: Mon, 28 Jan 2019 15:14:08 -0200
Subject: [PATCH] Add --skip-existing flag to twine, to ensure it won't fail

---
 travis/build-wheels.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/travis/build-wheels.sh b/travis/build-wheels.sh
index 23d961da..22acfa2e 100755
--- a/travis/build-wheels.sh
+++ b/travis/build-wheels.sh
@@ -24,9 +24,8 @@ for whl in wheelhouse/*.whl; do
     auditwheel repair "$whl" -w /io/wheelhouse/
 done
 
-
 /opt/python/cp37-cp37m/bin/pip install twine
 for WHEEL in /io/wheelhouse/pyopencl_gm*.whl; do
-    # /opt/python/cp37-cp37m/bin/twine upload --repository-url https://test.pypi.org/legacy/ "${WHEEL}"
-    /opt/python/cp37-cp37m/bin/twine upload -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" "${WHEEL}"
+    # /opt/python/cp37-cp37m/bin/twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ "${WHEEL}"
+    /opt/python/cp37-cp37m/bin/twine upload --skip-existing -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" "${WHEEL}"
 done
-- 
GitLab