-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 818 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
ARG := $(word 2, $(MAKECMDGOALS) )
clean:
@find . -name "*.pyc" -exec rm -rf {} \;
@find . -name "__pycache__" -delete
test:
python backend/manage.py test $(ARG) --parallel --keepdb
dockertest:
docker-compose run backend python backend/manage.py test $(ARG) --parallel --keepdb
testreset:
python backend/manage.py test $(ARG) --parallel
dockertestreset:
docker-compose run backend python backend/manage.py test $(ARG) --parallel
upgrade: ## update the *requirements.txt files with the latest packages satisfying *requirements.in
pip install -U -q pip-tools
pip-compile --upgrade -o dev-requirements.txt dev-requirements.in
pip-compile --upgrade -o requirements.txt requirements.in
# Make everything =>, not ==
sed 's/==/>=/g' requirements.txt > requirements.tmp
mv requirements.tmp requirements.txt