From 5c36ee8cce2771bd17bbe500a643951c7e37826a Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Thu, 27 Oct 2016 17:56:03 +0200
Subject: [PATCH] Revert "[temp] disable pypi uploading temporary in deploy.sh"

This reverts commit a3c81f455eb0aaec7d2354598d8881800b39c993
---
 gitlab/deploy.sh | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/gitlab/deploy.sh b/gitlab/deploy.sh
index 50a888f..34b1ca2 100755
--- a/gitlab/deploy.sh
+++ b/gitlab/deploy.sh
@@ -3,23 +3,23 @@
 
 source $(dirname ${0})/functions.sh
 
-# lock_pypirc
+lock_pypirc
 
-# setup_deploy register --repository staging
-# setup_deploy check sdist --formats zip upload --repository staging
+setup_deploy register --repository staging
+setup_deploy check sdist --formats zip upload --repository staging
 
-# # if that worked, uploads source package to the production index
-# log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..."
-# setup_deploy register --repository production
-# setup_deploy check sdist --formats zip upload --repository production
+# if that worked, uploads source package to the production index
+log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..."
+setup_deploy register --repository production
+setup_deploy check sdist --formats zip upload --repository production
 
-# # if that worked, uploads documentation to pythonhosted if any exists
-# if [ -d sphinx ]; then
-#   log_info "Uploading documentation to ${PYPISERVER} on behalf of ${PYPIUSER}..."
-#   setup_deploy upload_docs --upload-dir sphinx --repository production
-# fi
+# if that worked, uploads documentation to pythonhosted if any exists
+if [ -d sphinx ]; then
+  log_info "Uploading documentation to ${PYPISERVER} on behalf of ${PYPIUSER}..."
+  setup_deploy upload_docs --upload-dir sphinx --repository production
+fi
 
-# unlock_pypirc
+unlock_pypirc
 
 condaforge_packages=("bob" \
 "bob.extension" \
-- 
GitLab