-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 955 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 955 Bytes
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
# Note: This is meant for calysto_bash developer use only
.PHONY: all clean test release
export NAME=`python setup.py --name 2>/dev/null`
export VERSION=`python setup.py --version 2>/dev/null`
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_bash_kernel.py || echo "Skipping unit test"
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.kernel_name=calysto_bash --ExecutePreprocessor.timeout=60 --stdout calysto_bash.ipynb > /dev/null;
make clean
release: test clean
pip install wheel
python setup.py register
python setup.py bdist_wheel --universal
python setup.py sdist
git commit -a -m "Release $(VERSION)"; true
git tag v$(VERSION)
git push origin --all
git push origin --tags
twine upload dist/*
printf '\nUpgrade bash_kernel-feedstock with release and sha256 sum:'
shasum -a 256 dist/*.tar.gz