-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
41 lines (34 loc) · 1.24 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
test:
PYTHONPATH=. MPLBACKEND="agg" coverage run --source peartree -m py.test --verbose
performance:
PYTHONPATH=. MPLBACKEND="agg" pytest profiler/test_graph_assembly.py -s
notebook:
docker-compose build
mkdir -p ./notebooks
docker-compose up notebook
docker-clean:
docker network prune --force
docker volume prune --force
docker image prune --force
cprofile:
pip install snakeviz
python -m cProfile -o performance/cprof-output.py performance/run_etl.py
snakeviz performance/cprof-output.py
install-graph-viz:
apt-get update && \
apt-get install xdg-utils && \
apt-get install graphviz && \
pip install pygraphviz
# TODO: Determine which keyserver to use? Other option that appeared to work:
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7A80C8ED4FCCBE09
install-graph-tool:
echo "deb http://downloads.skewed.de/apt/stretch stretch main" | tee -a /etc/apt/sources.list && \
echo "deb-src http://downloads.skewed.de/apt/stretch stretch main" | tee -a /etc/apt/sources.list && \
apt-key adv --keyserver pgp.skewed.de --recv-key 612DEFB798507F25 && \
apt-get update && \
apt-get install python3-graph-tool && \
pip install pycairo
pypi-release:
if [ -d dist ]; then rm -Rf dist; fi
python setup.py bdist_wheel
twine upload dist/*