forked from malinoff/celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
95 lines (65 loc) · 1.91 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
PYTHON=python
SPHINX_DIR="docs/"
SPHINX_BUILDDIR="${SPHINX_DIR}/.build"
README="README.rst"
CONTRIBUTING="CONTRIBUTING.rst"
CONFIGREF_SRC="docs/configuration.rst"
README_SRC="docs/templates/readme.txt"
CONTRIBUTING_SRC="docs/contributing.rst"
SPHINX2RST="extra/release/sphinx-to-rst.py"
WORKER_GRAPH_FULL="docs/images/worker_graph_full.png"
SPHINX_HTMLDIR = "${SPHINX_BUILDDIR}/html"
html:
(cd "$(SPHINX_DIR)"; make html)
mv "$(SPHINX_HTMLDIR)" Documentation
docsclean:
-rm -rf "$(SPHINX_BUILDDIR)"
htmlclean:
-rm -rf "$(SPHINX)"
apicheck:
extra/release/doc4allmods celery
indexcheck:
extra/release/verify-reference-index.sh
configcheck:
PYTHONPATH=. $(PYTHON) extra/release/verify_config_reference.py $(CONFIGREF_SRC)
flakecheck:
flake8 celery
flakediag:
-$(MAKE) flakecheck
flakepluscheck:
flakeplus celery --2.6
flakeplusdiag:
-$(MAKE) flakepluscheck
flakes: flakediag flakeplusdiag
readmeclean:
-rm -f $(README)
readmecheck:
iconv -f ascii -t ascii $(README) >/dev/null
$(README):
$(PYTHON) $(SPHINX2RST) $(README_SRC) --ascii > $@
readme: readmeclean $(README) readmecheck
contributingclean:
-rm -f CONTRIBUTING.rst
$(CONTRIBUTING):
$(PYTHON) $(SPHINX2RST) $(CONTRIBUTING_SRC) > $@
contributing: contributingclean $(CONTRIBUTING)
test:
nosetests -xv celery.tests
cov:
nosetests -xv celery.tests --with-coverage --cover-html --cover-branch
removepyc:
-find . -type f -a \( -name "*.pyc" -o -name "*$$py.class" \) | xargs rm
-find . -type d -name "__pycache__" | xargs rm -r
$(WORKER_GRAPH_FULL):
$(PYTHON) -m celery graph bootsteps | dot -Tpng -o $@
graphclean:
-rm -f $(WORKER_GRAPH_FULL)
graph: graphclean $(WORKER_GRAPH_FULL)
gitclean:
git clean -xdn
gitcleanforce:
git clean -xdf
distcheck: flakecheck apicheck indexcheck configcheck readmecheck test gitclean
authorcheck:
git shortlog -se | cut -f2 | extra/release/attribution.py
dist: readme contributing docsclean gitcleanforce removepyc