1 # My make-fu style is old and tired. I just want to have a few helper commands.
6 .PHONY: clean sdist test docs
10 $(RM) -r Thun.egg-info/ dist/ build/ __pycache__/ $(TESTDIR)
11 find . -name '*.pyc' | xargs $(RM)
14 python ./setup.py sdist
16 # In order to support testing the code as installed
17 # create a virtualenv and install the source dist zip there.
20 virtualenv --system-site-packages --never-download $(TESTDIR)
21 . $(TESTDIR)/bin/activate && \
22 pip install --no-cache-dir --no-index ./dist/Thun-$(VERSION).tar.gz
23 echo "Type: source $(TESTDIR)/bin/activate"
27 cd ./docs && python -m nbconvert --to html *.ipynb
28 cd ./docs && python -m nbconvert --to markdown *.ipynb