-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
49 lines (36 loc) · 1.17 KB
/
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
43
44
45
46
47
48
49
# Flask-Diamond (c) Ian Dennis Miller
SHELL=/bin/bash
MOD_NAME=flask_diamond
WATCHMEDO_PATH=$$(which watchmedo)
NOSETESTS_PATH=$$(which nosetests)
TEST_CMD=SETTINGS=$$PWD/$(MOD_NAME)/tests/testing.conf $(NOSETESTS_PATH) $(MOD_NAME)
install:
python setup.py install
requirements:
pip install -r requirements.txt
clean:
rm -rf build dist *.egg-info
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
test: test-all test-scaffold
@echo "OK"
test-all:
$(TEST_CMD) -c etc/nose/test-all.cfg
single:
$(TEST_CMD) -c etc/nose/test-single.cfg 2>&1
test-scaffold:
# create folder
rm -rf build/test-app
mkdir -p build/test-app
# scaffold the app
mrbob --config flask_diamond/tests/mrbob.ini -O build/test-app flask_diamond/skels/app
cd build/test-app && make install test
# planets tutorial
mrbob --config flask_diamond/tests/mrbob.ini -O build/test-app flask_diamond/skels/tutorial-planets
cd build/test-app && make install test
docs:
rm -rf build/sphinx
SETTINGS=$$PWD/$(MOD_NAME)/tests/testing.conf sphinx-build -b html docs build/sphinx
release:
python setup.py sdist upload -r https://pypi.python.org/pypi
.PHONY: install requirements clean test docs release