From: Frank Brehm Date: Fri, 28 Dec 2018 08:46:39 +0000 (+0100) Subject: Adding update-env.sh X-Git-Tag: 1.6.4^2~100 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=65d4a2d52e36351984be7cc1d7e934b6566b03aa;p=pixelpark%2Fpuppetmaster-webhooks.git Adding update-env.sh --- diff --git a/requirements.txt b/requirements.txt index 79b1db7..bdeb9b4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,5 @@ dnspython flake8 docker-py pathlib -git+https://git.pixelpark.com/frabrehm/python_fb_tools.git@test +git+https://git.pixelpark.com/frabrehm/python_fb_tools.git@develop +Babel diff --git a/update-env.sh b/update-env.sh new file mode 100755 index 0000000..55f0c88 --- /dev/null +++ b/update-env.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "Preparing virtual environment ..." +echo +if [[ ! -f venv/bin/activate ]] ; then + virtualenv --python=python3 venv +fi + +. venv/bin/activate || exit 5 + +echo "---------------------------------------------------" +echo "Installing and/or upgrading necessary modules ..." +echo +pip install --upgrade --upgrade-strategy eager --requirement requirements.txt +echo +echo "---------------------------------------------------" +echo "Installed modules:" +echo +pip list --format columns + +echo +echo "-------" +echo "Fertig." +echo + +# vim: ts=4