forked from jettify/aionsq
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
37 lines (30 loc) · 768 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
PYTHON ?= python3
FLAKE ?= pyflakes
PEP ?= pep8
.PHONY: all flake doc test cov dist
all: flake doc cov
doc:
make -C docs html
flake:
$(FLAKE) asyncnsq tests examples
$(PEP) asyncnsq tests examples
test:
$(PYTHON) runtests.py -v 4
cov coverage:
$(PYTHON) runtests.py --coverage
dist:
-rm -r build dist asyncnsq.egg-info
$(PYTHON) setup.py sdist bdist_wheel
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 build dist asyncnsq.egg-info