Commit ecc34303caf0ea433e1a47af8de462d02aa295ab
1 parent
e0a7b516
Exists in
master
Add a Makefile (possibly useless in our case)
Showing
1 changed file
with
27 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,27 @@ |
1 | +.PHONY: docs test | |
2 | + | |
3 | +help: | |
4 | + @echo " env create a development environment using virtualenv" | |
5 | + @echo " deps install dependencies using pip" | |
6 | + @echo " clean remove unwanted files like .pyc's" | |
7 | + @echo " lint check style with flake8" | |
8 | + @echo " test run all your tests using py.test" | |
9 | + | |
10 | +env: | |
11 | + sudo easy_install pip && \ | |
12 | + pip install virtualenv && \ | |
13 | + virtualenv env && \ | |
14 | + . env/bin/activate && \ | |
15 | + make deps | |
16 | + | |
17 | +deps: | |
18 | + pip install -r requirements.txt | |
19 | + | |
20 | +clean: | |
21 | + python manage.py clean | |
22 | + | |
23 | +lint: | |
24 | + flake8 --exclude=env . | |
25 | + | |
26 | +test: | |
27 | + py.test tests | |
0 | 28 | \ No newline at end of file | ... | ... |