]> Frank Brehm's Git Trees - pixelpark/python-packaging.git/commitdiff
Updating gitlab/python-setup-template.yaml
authorFrank Brehm <frank@brehm-online.com>
Thu, 29 Dec 2022 09:25:28 +0000 (10:25 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 29 Dec 2022 09:25:28 +0000 (10:25 +0100)
gitlab/python-setup-template.yaml

index 0d1b0fc9eff42275c453e4b114ca0346aeaf5982..9d2d30bcad94f8b9a16bde0df557cb34adde6e0a 100644 (file)
     - 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