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
|
.PHONY: tests egg install clean
PYTHON=python
tests:
@echo "[ run unit tests in python 2 ]"
PYTHONPATH=$(PWD) $(PYTHON)2.7 test/test_IPy.py || exit $$?
@echo "[ run unit tests in python 3 ]"
PYTHONPATH=$(PWD) $(PYTHON)3.9 test/test_IPy.py || exit $$?
@echo
@echo "[ test README in python 2 ]"
$(PYTHON)2.7 test_doc.py || exit $$?
@echo "[ test README in python 3 ]"
$(PYTHON)3.9 test_doc.py || exit $$?
egg: clean
$(PYTHON) setup.py sdist bdist_egg
IPy.html: README
rst2html README $@ --stylesheet=rest.css
install:
./setup.py install
clean:
rm -rf IPy.html *.pyc build dist IPy.egg-info
|