forked from gak/pycallgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 834 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
40
41
42
export PYTHONPATH=$(shell pwd)
all: deps tests doc
pypi:
python setup.py sdist upload
clean:
make -C docs clean
-rm .coverage
run_examples:
cd examples/graphviz; ./all.py
cd examples/gephi; ./all.py
deps:
pip install -r requirements/development.txt
pip install -r requirements/documentation.txt
tests:
py.test \
--pep8 \
--ignore=pycallgraph/memory_profiler.py \
test pycallgraph examples
coverage run --source pycallgraph,scripts -m py.test
coverage report -m
flake8 --exclude=__init__.py,memory_profiler.py pycallgraph
flake8 --ignore=F403 test
flake8 examples
doc:
cd docs/examples && ./generate.py
cd docs/guide/filtering && ./generate.py
make -C docs html man
cp docs/_build/man/pycallgraph.1 man/
docs/update_readme.py
2to3:
for a in pycallgraph test examples scripts; do 2to3 -wn $$a; done