-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile
58 lines (50 loc) · 1.14 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
# Functions
define clean
rm -rf *.egg-info
rm -rf dist
find . -name __pycache__ | xargs rm -rf
find . -name .ipynb_checkpoints | xargs rm -rf
endef
# Commands
all: test
test: unit
clean:
$(call clean)
# jupyter nbextension install --sys-prefix --symlink --overwrite --py ipysigma
# jupyter nbextension enable --sys-prefix --py ipysigma
deps:
$(call clean)
npm i -g yarn
pip3 install -U pip
pip3 install build twine jupyter_packaging black docdocdoc
pip3 install jupyterlab jupyter
pip3 install networkx igraph pandas
SETUPTOOLS_ENABLE_FEATURES="legacy-editable" pip3 install -e ".[test, examples]"
yarn install
yarn run build
jupyter labextension develop --overwrite .
format:
black ipysigma
unit:
@echo Running python tests...
py.test -svvv
# @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
readme:
@echo Templating readme...
python -m scripts.readme > README.md