-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (29 loc) · 842 Bytes
/
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
DEV_URL := "http://localhost:5000/"
all: help
help:
@echo "Convenience Makefile for the lazy typists."
@echo
@echo " check check Python syntax & coding style"
@echo " test run unit tests (verbose)"
@echo " tt run unit tests (compact)"
@echo " t same as tt, but fails fast"
@echo " pypi package and send to pypi"
@echo " github package and send to github"
@echo
pypi:
@python setup.py register sdist bdist upload
@github:
@git push github
check:
@make check-syntax || true
@make check-style || true
check-syntax:
@find $(shell ls | egrep -v '(lib|bin|include)') -name '*.py' -print0 | xargs -0 pyflakes
check-style:
@pep8 -r --exclude=lib,bin,include .
test:
@python -m unittest discover -v -s tests
tt:
@python -m unittest discover -s tests
t:
@python -m unittest discover -s tests --failfast