Files
Thun/Makefile
T
Simon Forman 147641611d Working on the Sphinx docs.
I had to remove the tuples from the args specs, sphinx had kittens.

I see value both in the autodoc for library.py and the library examples
Jupyter notebook (converted to ReST format) so I'm including them both.

Calling the library module autodocs the "Function Reference".
2018-04-24 21:01:16 -07:00

30 lines
812 B
Makefile

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