forked from blink1073/oct2py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (50 loc) · 1.33 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
# Note: This is meant for Oct2Py developer use only
.PHONY: all clean test cover release gh-pages
export TEST_ARGS="--exe -v --processes=1 --process-timeout=20 --process-restartworker --with-doctest"
all:
make clean
python setup.py install
clean:
rm -rf build
rm -rf dist
find . -name "*.pyc" -o -name "*.py,cover"| xargs rm -f
test:
make clean
python setup.py build
export PYTHONWARNINGS="d";
cd build; nosetests $(TEST_ARGS)
cd build; ~/anaconda/envs/py34/bin/nosetests $(TEST_ARGS)
rm -rf build
python setup.py check -r
cover:
make clean
pip install nose-cov
nosetests -v --exe --with-cov --cov oct2py --cov-config .coveragerc oct2py
coverage annotate
release:
make clean
pip install wheel
python setup.py register
python setup.py bdist_wheel upload
python setup.py sdist --formats=gztar,zip upload
echo "*** Do not forget to add a tag"
echo "*** Do not forget to `make gh-pages`"
gh-pages:
pip install sphinx-bootstrap-theme
pip install numpydoc
git checkout master
git pull origin master
rm -rf ../temp_docs
mkdir ../temp_docs
rm -rf docs/build
make -C docs html
cp -R docs/_build/html/ ../temp_docs
mv ../temp_docs/html ../temp_docs/docs
git checkout gh-pages
rm -rf docs
cp -R ../temp_docs/docs/ .
git add docs
git commit -m "rebuild docs"
git push origin gh-pages
rm -rf ../temp_docs
git checkout master