From: Frank Brehm Date: Thu, 29 Dec 2022 09:25:28 +0000 (+0100) Subject: Updating gitlab/python-setup-template.yaml X-Git-Tag: v1.0~33 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=e94522577b6300f4e8540c64b65ab1eebff19746;p=pixelpark%2Fpython-packaging.git Updating gitlab/python-setup-template.yaml --- 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