forked from aio-libs/aiopg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 789 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
# Some simple testing tasks (sorry, UNIX only).
doc:
cd docs && make html
echo "open file://`pwd`/docs/_build/html/index.html"
pep:
pep8 aiopg examples tests
flake:
pyflakes aiopg examples tests
test: pep flake
py.test -q tests
vtest: pep flake
py.test tests
cov cover coverage: pep flake
py.test --cov=aiopg --cov=tests --cov-report=html --cov-report=term tests
clean:
find . -name __pycache__ |xargs rm -rf
find . -type f -name '*.py[co]' -delete
find . -type f -name '*~' -delete
find . -type f -name '.*~' -delete
find . -type f -name '@*' -delete
find . -type f -name '#*#' -delete
find . -type f -name '*.orig' -delete
find . -type f -name '*.rej' -delete
rm -f .coverage
rm -rf coverage
rm -rf docs/_build
rm -rf .tox
.PHONY: all pep test vtest cov clean