generated from jenstroeger/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (32 loc) · 1.07 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
NAME = lambda2color
PYTHON = python
VERSION=`python -c'import lambda2color; print(lambda2color.__version__)'`
default: $(NAME).pdf
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 main
pypi_upload:
$(PYTHON) setup.py sdist #upload
twine upload dist/*
pypi_docs:
#rm web.zip
#ipython3 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:
pip uninstall -y $(NAME) ; pip3 install -e .
todo:
grep -R * (^|#)[ ]*(TODO|FIXME|XXX|HINT|TIP)( |:)([^#]*)
# macros for tests
%.pdf: %.ipynb
jupyter nbconvert --SphinxTransformer.author='Laurent Perrinet (INT, UMR7289)' --to pdf $<
# cleaning macros
clean:
rm -fr figures/* *.pyc *.py~ build dist
.PHONY: clean