From e94522577b6300f4e8540c64b65ab1eebff19746 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 29 Dec 2022 10:25:28 +0100 Subject: [PATCH] Updating gitlab/python-setup-template.yaml --- gitlab/python-setup-template.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gitlab/python-setup-template.yaml b/gitlab/python-setup-template.yaml index 0d1b0fc..9d2d30b 100644 --- a/gitlab/python-setup-template.yaml +++ b/gitlab/python-setup-template.yaml @@ -25,11 +25,13 @@ - locale-gen - locale -a - pip install --upgrade pip + - > + if [[ -n "${UPDATE_ALL_PIP_MODULES}" && "${UPDATE_ALL_PIP_MODULES}" == "y" ]] ; then + pip list --outdated | awk '{if(NR>=3) print $1}' | xargs -n 1 pip install --upgrade + fi - > if [[ -r requirements.txt ]] ; then pip install -r requirements.txt --upgrade --upgrade-strategy eager - else - pip install --upgrade --upgrade-strategy eager fi # vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list -- 2.39.5