From 65d4a2d52e36351984be7cc1d7e934b6566b03aa Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 28 Dec 2018 09:46:39 +0100 Subject: [PATCH] Adding update-env.sh --- requirements.txt | 3 ++- update-env.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100755 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 -- 2.39.5