| 1 |
.PHONY: tests egg install clean |
| 2 |
|
| 3 |
PYTHON=python |
| 4 |
|
| 5 |
tests: |
| 6 |
@echo "[ run unit tests in python 2 ]" |
| 7 |
PYTHONPATH=$(PWD) $(PYTHON)2.7 test/test_IPy.py || exit $$? |
| 8 |
@echo "[ run unit tests in python 3 ]" |
| 9 |
PYTHONPATH=$(PWD) $(PYTHON)3.9 test/test_IPy.py || exit $$? |
| 10 |
@echo |
| 11 |
@echo "[ test README in python 2 ]" |
| 12 |
$(PYTHON)2.7 test_doc.py || exit $$? |
| 13 |
@echo "[ test README in python 3 ]" |
| 14 |
$(PYTHON)3.9 test_doc.py || exit $$? |
| 15 |
|
| 16 |
egg: clean |
| 17 |
$(PYTHON) setup.py sdist bdist_egg |
| 18 |
|
| 19 |
IPy.html: README |
| 20 |
rst2html README $@ --stylesheet=rest.css |
| 21 |
|
| 22 |
install: |
| 23 |
./setup.py install |
| 24 |
|
| 25 |
clean: |
| 26 |
rm -rf IPy.html *.pyc build dist IPy.egg-info |
| 27 |
|