diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 8700edaad11acc8e0a76b686b731b99b88357e64..2ea420ec3dbcbf06fdb612e424e98b5a3e70c9e2 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -138,7 +138,6 @@ index-servers =
     staging
 
 [production]
-repository: ${PYPISERVER}
 username: ${PYPIUSER}
 password: ${PYPIPASS}
 
@@ -405,11 +404,7 @@ if [ -z "${PREFIX}" ]; then
   PREFIX=${CI_PROJECT_DIR}/build-prefix
 fi
 
-if [ -z "${PYPISERVER}" ]; then
-  PYPISERVER="https://pypi.python.org/pypi"
-fi
-
-TESTSERVER=https://testpypi.python.org/pypi
+TESTSERVER=https://testpypi.python.org/legacy/
 
 check_env OSNAME
 check_env VISIBILITY
@@ -418,7 +413,6 @@ check_env PYVER
 check_env PREFIX
 export_env PREFIX
 check_env DOCSERVER
-check_env PYPISERVER
 check_env TESTSERVER
 check_env CONDA_FOLDER
 check_env CONDA_ENV