]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Adding update-env.sh
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 28 Dec 2018 08:46:39 +0000 (09:46 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 28 Dec 2018 08:46:39 +0000 (09:46 +0100)
requirements.txt
update-env.sh [new file with mode: 0755]

index 79b1db736726af1ef43c2a2d0b691027b076c897..bdeb9b4118cf0f473f02b0728c72b4e804aac368 100644 (file)
@@ -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 (executable)
index 0000000..55f0c88
--- /dev/null
@@ -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