-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
32 lines (27 loc) · 969 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
# Note: This is meant for scilab_kernel developer use only
.PHONY: all clean test release
export NAME=scilab_kernel
export VERSION=`python -c "import $(NAME); print($(NAME).__version__)"`
export PY=`python -V`
all: clean
python setup.py install
clean:
rm -rf build
rm -rf dist
test: clean
pip install jupyter_kernel_test nbconvert
python -V 2>&1 | grep "Python 3" && python test_scilab_kernel.py || echo "Skipping unit test"
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.kernel_name=scilab --ExecutePreprocessor.timeout=60 --stdout scilab_kernel.ipynb > /dev/null;
python -c "from jupyter_client.kernelspec import find_kernel_specs; assert 'scilab' in find_kernel_specs()"
release: clean
pip install wheel
git co master
git pull origin master
python setup.py register
rm -rf dist
python setup.py bdist_wheel --universal
python setup.py sdist
git tag v$(VERSION)
git push origin --all
git push origin --tags
twine upload dist/*