forked from JackStouffer/Flask-Foundation
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 950 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 950 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
32
33
34
35
.PHONY: docs test
help:
@echo " env create a development environment using virtualenv"
@echo " deps install dependencies using pip"
@echo " clean remove unwanted files like .pyc's"
@echo " lint check style with flake8"
@echo " test run all your tests using py.test"
@echo " rename appname=<new_name> rename app"
env:
sudo easy_install pip && \
pip install virtualenv && \
virtualenv env && \
. env/bin/activate && \
make deps
deps:
pip install -r requirements.txt
clean:
find . -name '*.pyc' -exec rm -f {} \;
find . -name '*.pyo' -exec rm -f {} \;
find . -name '*~' -exec rm -f {} \;
lint:
flake8 --exclude=env .
test:
py.test tests
rename:
echo "renaming appname to $(appname)"
find . -type f | grep -v '/env/' | xargs replace appname $(appname) -- {}
mv appname $(appname)