-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev-setup.sh
executable file
·40 lines (33 loc) · 1.07 KB
/
dev-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/bash
echo
echo " ********* gpx2artdata dev setup ******** "
echo " *** *** "
echo " *** dude, chill... *** "
echo " *** *** "
echo " ******* e l e k t r o s l ö j d ******** "
echo
if [ ! -f local.env ]
then
echo " *** no local environment found. creating local.env *** "
cp local.env.example local.env
else
echo "local.env found."
fi
# install into new venv
[ -d .venv ] && echo " *** virtual environment found, torching it. *** " && rm -r .venv
echo " *** creating venv *** "
python -m venv .venv
echo " *** installing [dev] group *** "
source .venv/bin/activate
pip install --upgrade pip
pip install -e .[dev]
echo " *** installing pre-commit hooks *** "
pre-commit install
echo
echo " *************** done! **************** "
echo " *** *** "
echo " *** run source .venv/bin/activate *** "
echo " *** and let the good times roll *** "
echo " *** *** "
echo " ******* e l e k t r o s l ö j d ******** "
echo