Add helper to set up virtualenv and install requirements

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-02-24 15:15:01 +01:00
parent a4ea5c0c64
commit 3ad886e024
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

10
bin/venv Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -ex
set -o pipefail
[ -e .venv ] || virtualenv .venv
source .venv/bin/activate
[ -f requirements.txt ] && pip install -r requirements.txt