forked from pinterest/snappass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 675 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (19 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: dev prod run test
dev: dev-requirements.txt
pip install -r dev-requirements.txt
prod: requirements.txt
pip install -r requirements.txt
run: prod
FLASK_DEBUG=1 FLASK_APP=snappass.main NO_SSL=True venv/bin/flask run
test:
PYTHONPATH=snappass venv/bin/nosetests -s tests
translations:
docker run --rm \
-v $(PWD)/babel.cfg:/usr/src/snappass/babel.cfg:ro \
-v $(PWD)/snappass:/usr/src/snappass/snappass \
-w /usr/src/snappass \
rjpr/snappass bash -c " \
pybabel extract -F babel.cfg -o messages.pot . && \
pybabel update -i messages.pot -d snappass/translations && \
pybabel compile -d snappass/translations && \
rm messages.pot"