-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
51 lines (41 loc) · 1.38 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
NAME = LogGabor
VERSION=`python3.11 -c'import LogGabor; print(LogGabor.__version__)'`
PYTHON = python3.11
default: $(NAME).pdf
edit:
mvim -p setup.py src/__init__.py src/$(NAME).py README.md Makefile requirements.txt
pypi_all: pypi_tags pypi_upload
# 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 $(VERSION) -m "Adds a tag so that we can put this on PyPI."
git push --tags origin master
pypi_upload:
$(PYTHON) setup.py sdist #upload
twine upload dist/*
pypi_docs:
#rm web.zip
#ipython3.11 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
install_dev:
pip3 uninstall -y $(NAME) ; pip3 install -e .
todo:
grep -R * (^|#)[ ]*(TODO|FIXME|XXX|HINT|TIP)( |:)([^#]*)
console:
open -a /Applications/Utilities/Console.app/ log-sparseedges-debug.log
# macros for tests
%.pdf: %.ipynb
jupyter nbconvert --SphinxTransformer.author='Laurent Perrinet (INT, UMR7289)' --to 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