-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
42 lines (29 loc) · 877 Bytes
/
Makefile
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
41
42
.PHONY: clean system-packages python-packages python-setup db-init db-migrate db-upgrade install tests run all
clean:
find . -type f -name '*.pyc' -delete
find . -type f -name '*.log' -delete
rm -rf instance/*
rm -rf migrations
rm -rf flask_qldb_boilerplate.egg-info
system-packages:
#sudo apt install python-pip -y
python-packages:
pip3 install -r requirements.txt
python-setup:
pip3 install -e .
db-init:
python3 manage.py db init
db-migrate:
python3 manage.py db migrate --message "${message:='database migration'}"
db-upgrade:
python3 manage.py db upgrade
seed-users:
python3 manage.py seed_users
install: clean system-packages python-packages python-setup db-init db-migrate db-upgrade seed-users
tests:
python3 manage.py test
run:
python3 manage.py run
qldb-migrate:
python3 manage.py qldb_migrate -d $(direction)
all: clean install tests run