-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (56 loc) · 1.75 KB
/
Makefile
File metadata and controls
65 lines (56 loc) · 1.75 KB
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
# Options
RENDER=--render
ORIENTED=--oriented
TO=dot
TO=gexf
# TARGET
BUBBLE=overlap
BUBBLE=empty_pwn
BUBBLE=loop
BUBBLE=singleton
BUBBLE=complex
BUBBLE=disjoint
BUBBLE=basic
BUBBLE=hard_test
CMD=python3 -m bubbletools
OPT=$(RENDER) $(ORIENTED)
validate:
$(CMD) validate bubbles/$(BUBBLE).bbl --profiling
dot:
$(CMD) dot bubbles/$(BUBBLE).bbl output/$(BUBBLE).dot $(OPT)
gexf:
$(CMD) gexf bubbles/$(BUBBLE).bbl output/$(BUBBLE).gexf $(ORIENTED)
embedded-js:
# generate only one html file
$(CMD) js bubbles/$(BUBBLE).bbl output/js-single-file.html $(ORIENTED) --render width_as_cover=True
js:
$(CMD) js bubbles/$(BUBBLE).bbl output/test-site $(ORIENTED) --render width_as_cover=True
js-per-file:
# same recipe as above, but with manual recreation of test-site and generation of only graph/code.js
- rm -r output/test-site-single-file/
cp -r bubbletools/_js_dir_template output/test-site-single-file/
$(CMD) js bubbles/$(BUBBLE).bbl output/test-site-single-file/js/graph.js $(ORIENTED)
xdg-open ./output/test-site-single-file/index.html
t: tests
tests:
python -m pytest bubbletools/ -vv --doctest-module
##########################################
#### PYPI
##########################################
test_register:
python3 setup.py register -r https://testpypi.python.org/pypi
test_upload:
python3 setup.py sdist upload -r https://testpypi.python.org/pypi
test_install:
pip3 install -U -i https://testpypi.python.org/pypi bubbletools
register:
python3 setup.py register
upload:
python3 setup.py sdist upload
install:
yes y | pip3 uninstall bubbletools
pip3 install bubbletools
install_deps:
python -c "import configparser; c = configparser.ConfigParser(); c.read('setup.cfg'); print(c['options']['install_requires'])" | xargs pip install -U
fullrelease:
fullrelease