From 5b2469e1bd51741d2130cb7ac77d5d8dc8cedc38 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Fri, 22 Sep 2017 14:52:48 +0200
Subject: [PATCH] improve twine

---
 gitlab/pypi.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gitlab/pypi.sh b/gitlab/pypi.sh
index d161a52..76dc61d 100755
--- a/gitlab/pypi.sh
+++ b/gitlab/pypi.sh
@@ -11,5 +11,4 @@ if [ "${VISIBILITY}" != "public" ]; then
 fi
 
 log_info "Uploading package to PyPI on behalf of user ${PYPIUSER}..."
-twine register --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip
-twine upload --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip
+run_cmd twine upload --skip-existing --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip
-- 
GitLab