forked from medialab/ipysigma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (43 loc) · 887 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
43
44
45
46
47
48
49
50
# Functions
define clean
rm -rf *.egg-info
rm -rf dist
endef
# Commands
all: test
test: unit
clean:
$(call clean)
deps:
npm i -g yarn
pip3 install -U pip
pip3 install build twine jupyter_packaging black
pip3 install jupyterlab
pip3 install networkx igraph
pip3 install -e ".[test, examples]"
yarn run build
jupyter labextension develop --overwrite .
jupyter nbextension install --sys-prefix --symlink --overwrite --py ipysigma
jupyter nbextension enable --sys-prefix --py ipysigma
format:
black ipysigma
unit:
@echo Running python tests...
py.test
@echo Running javascript tests...
yarn test
@echo
release:
$(call clean)
yarn run build
@echo Publishing on npm...
npm publish .
@echo Publishing on pypi...
python -m build .
twine check dist/ipysigma-*
twine upload dist/ipysigma-*
@echo
$(call clean)
watch:
@echo Watching js files...
yarn run watch