Add helper to set up virtualenv and install requirements
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a4ea5c0c64
commit
3ad886e024
1 changed files with 10 additions and 0 deletions
10
bin/venv
Executable file
10
bin/venv
Executable 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
|
||||
|
Loading…
Reference in a new issue