forked from pmorissette/bt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (41 loc) · 997 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
51
52
53
54
55
56
TMPREPO=/tmp/docs/bt
default: build_dev
.PHONY: dist upload docs pages serve klink notebooks test lint fix
test:
python -m nose --with-coverage --cover-package bt
lint:
python -m flake8 bt setup.py
fix:
python -m black bt setup.py
dist:
python setup.py sdist
upload: clean dist
twine upload dist/*
docs:
$(MAKE) -C docs/ clean
$(MAKE) -C docs/ html
pages:
- rm -rf $(TMPREPO)
git clone -b gh-pages git@github.com:pmorissette/bt.git $(TMPREPO)
rm -rf $(TMPREPO)/*
cp -r docs/build/html/* $(TMPREPO)
cd $(TMPREPO); \
git add -A ; \
git commit -a -m 'auto-updating docs' ; \
git push
serve:
cd docs/build/html; \
python -m SimpleHTTPServer 9087
build_dev:
- python setup.py build_ext --inplace
clean:
- rm -rf build
- rm -rf dist
- rm -rf bt.egg-info
- find . -name '*.so' -delete
- find . -name '*.c' -delete
klink:
git subtree pull --prefix=docs/source/_themes/klink --squash klink master
notebooks:
cd docs/source; \
ipython notebook --no-browser --ip=*