-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·49 lines (38 loc) · 1.22 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
default: pypi_docs
NAME = LogGabor
edit:
mvim -p setup.py __init__.py $(NAME).py README.md Makefile requirements.txt
pypi_all: pypi_tags pypi_push pypi_upload pypi_docs
# https://docs.python.org/2/distutils/packageindex.html
pypi_tags:
git commit -am' tagging for PyPI '
# in case you wish to delete tags, visit http://wptheming.com/2011/04/add-remove-github-tags/
git tag 0.1.1 -m "Adds a tag so that we can put this on PyPI."
git push --tags origin master
pypi_push:
python setup.py register
pypi_upload:
python setup.py sdist upload
pypi_docs:
rm web.zip index.html
ipython nbconvert --to html $(NAME).ipynb
mv $(NAME).html index.html
#runipy $(NAME).ipynb --html index.html
zip web.zip index.html
open https://pypi.python.org/pypi?action=pkg_edit&name=$NAME
todo:
grep -R * (^|#)[ ]*(TODO|FIXME|XXX|HINT|TIP)( |:)([^#]*)
# macros for tests
%.html: %.ipynb
runipy $< --html $@
%.pdf: %.ipynb
ipython nbconvert --SphinxTransformer.author='Laurent Perrinet (INT, UMR7289)' --to latex --post PDF $<
# cleaning macros
clean_tmp:
#find . -name .AppleDouble -type d -exec rm -fr {} \;
find . -name *lock* -exec rm -fr {} \;
rm frioul.*
rm log-edge-debug.log
clean:
rm -fr figures/* *.pyc *.py~ build dist
.PHONY: clean