-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 910 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (25 loc) · 910 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
25
26
27
28
29
30
31
.PHONY: clean docs
help:
@echo " clean remove unwanted stuff"
@echo " link pip install -e ."
@echo " test run the tests"
@echo " dev run dev server"
@echo " docs build documentation"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '.DS_Store' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
find . -name '.coverage' -exec rm -rf {} +
rm -rf build dist .eggs *.egg-info +
link:
pip install -e .
dev:
HOST=$$(python -c 'from passportd.basis.conf import config;print(config.get("HOST"))'); \
PORT=$$(python -c 'from passportd.basis.conf import config;print(config.get("PORT"))'); \
FLASK_APP=passportd.app:create_app FLASK_ENV=development FLASK_DEBUG=1 flask run --host $$HOST --port $$PORT
test:
python -m unittest discover -p "test_*.py"
docs:
cd docs && make html