Skip to content

Commit adf67ce

Browse files
committed
Add a run shell script which wraps invoke with the correct venv
1 parent 35cceb2 commit adf67ce

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

run

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
PYTHON=${PYTHON:-python3}
4+
VENV_DIR=".venv"
5+
6+
if [ ! -d "$VENV_DIR" ]; then
7+
$PYTHON -m venv "$VENV_DIR"
8+
. "$VENV_DIR/bin/activate"
9+
pip install --upgrade pip
10+
pip install .[dev]
11+
fi
12+
13+
. "$VENV_DIR/bin/activate"
14+
15+
invoke "$@"

0 commit comments

Comments
 (0)