Bump pillow from 5.1.0 to 5.2.0
[mygpo.git] / makefile
blobe9bf59b45c49aedcb38e8d5487f01e19e03c9122
1 all: help
3 help:
4 @echo 'make test run tests and show coverage report'
5 @echo 'make clean clean up files'
7 dev-config:
8 mkdir -p envs/local
9 echo django.core.mail.backends.console.EmailBackend > envs/local/EMAIL_BACKEND
10 echo secret > envs/local/SECRET_KEY
11 echo postgres://mygpo:mygpo@localhost/mygpo > envs/local/DATABASE_URL
12 echo True > envs/local/DEBUG
14 test: envs/test/MEDIA_ROOT
15 # assume defined media root directory, empty before running tests
16 rm -rf $(shell cat envs/test/MEDIA_ROOT)
17 mkdir -p $(shell cat envs/test/MEDIA_ROOT)
18 envdir envs/dev/ pytest --cov=mygpo/ --cov-branch
19 coverage report --show-missing
21 update-po:
22 envdir envs/dev/ python manage.py makemessages \
23 --ignore=doc/* --ignore=envs/* --ignore=media/* --ignore=venv/* \
24 --ignore=res/* --ignore=tools/* --ignore=mygpo/*/migrations/* \
25 --ignore=static/*
27 notebook:
28 envdir envs/dev/ python manage.py shell_plus --notebook
30 clean:
31 git clean -fX
33 install-deps:
34 sudo apt-get install libpq-dev libjpeg-dev zlib1g-dev libwebp-dev \
35 build-essential python3-dev virtualenv libffi-dev
38 .PHONY: all help test clean unittest coverage install-deps