forked from pmorissette/bt
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
58 lines (43 loc) · 1.1 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
TMPREPO=/tmp/docs/bt
default: build_dev
.PHONY: dist upload docs pages serve klink notebooks test lint fix develop
develop:
python -m pip install -e .[dev]
test:
python -m pytest -vvv tests --cov=bt --junitxml=python_junit.xml --cov-report=xml --cov-branch --cov-report term
lint:
python -m flake8 bt setup.py docs/source/conf.py
fix:
python -m black bt setup.py docs/source/conf.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 [email protected]: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 http.server 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; \
jupyter notebook --no-browser --ip=*