Makefile
74 lines
| 1.4 KiB
| text/x-makefile
|
MakefileLexer
Fernando Perez
|
r1334 | # Set this prefix to where you want to install the plugin | ||
gvaroquaux
|
r1628 | PREFIX=/usr/local | ||
Fernando Perez
|
r1334 | |||
Gael Varoquaux
|
r1505 | NOSE0=nosetests -vs --with-doctest --doctest-tests --detailed-errors | ||
Fernando Perez
|
r1509 | NOSE=nosetests -vvs --with-ipdoctest --doctest-tests --doctest-extension=txt \ | ||
--detailed-errors | ||||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1435 | SRC=ipdoctest.py setup.py ../decorators.py | ||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1482 | # Default target for clean 'make' | ||
Brian Granger
|
r2760 | default: interactiveshell | ||
Fernando Perez
|
r1482 | |||
# The actual plugin installation | ||||
Fernando Perez
|
r1334 | plugin: IPython_doctest_plugin.egg-info | ||
Fernando Perez
|
r1482 | # Simple targets that test one thing | ||
simple: plugin simple.py | ||||
$(NOSE) simple.py | ||||
Fernando Perez
|
r1378 | dtest: plugin dtexample.py | ||
Fernando Perez
|
r1420 | $(NOSE) dtexample.py | ||
Fernando Perez
|
r1378 | |||
Fernando Perez
|
r1482 | rtest: plugin test_refs.py | ||
Fernando Perez
|
r1420 | $(NOSE) test_refs.py | ||
Fernando Perez
|
r1334 | test: plugin dtexample.py | ||
Fernando Perez
|
r1420 | $(NOSE) dtexample.py test*.py test*.txt | ||
Fernando Perez
|
r1334 | |||
deb: plugin dtexample.py | ||||
Fernando Perez
|
r1420 | $(NOSE) test_combo.txt | ||
Fernando Perez
|
r1334 | |||
Fernando Perez
|
r1482 | # IPython tests | ||
Fernando Perez
|
r1420 | deco: | ||
Fernando Perez
|
r1509 | $(NOSE0) IPython.testing.decorators | ||
Fernando Perez
|
r1435 | |||
Fernando Perez
|
r1482 | magic: plugin | ||
Brian Granger
|
r2036 | $(NOSE) IPython.core.magic | ||
Fernando Perez
|
r1435 | |||
Fernando Perez
|
r1761 | excolors: plugin | ||
Brian Granger
|
r2021 | $(NOSE) IPython.core.excolors | ||
Fernando Perez
|
r1420 | |||
Brian Granger
|
r2760 | interactiveshell: plugin | ||
$(NOSE) IPython.core.interactiveshell | ||||
Fernando Perez
|
r1482 | |||
strd: plugin | ||||
Brian Granger
|
r2048 | $(NOSE) IPython.core.strdispatch | ||
Fernando Perez
|
r1482 | |||
Fernando Perez
|
r1509 | engine: plugin | ||
$(NOSE) IPython.kernel | ||||
tf: plugin | ||||
$(NOSE) IPython.config.traitlets | ||||
Fernando Perez
|
r1482 | # All of ipython itself | ||
ipython: plugin | ||||
$(NOSE) IPython | ||||
Fernando Perez
|
r1509 | |||
Fernando Perez
|
r1482 | # Combined targets | ||
sr: rtest strd | ||||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1482 | base: dtest rtest test strd deco | ||
Fernando Perez
|
r1420 | |||
Brian Granger
|
r2760 | quick: base interactiveshell ipipe | ||
Fernando Perez
|
r1509 | |||
Fernando Perez
|
r1482 | all: base ipython | ||
Fernando Perez
|
r1376 | |||
Fernando Perez
|
r1482 | # Main plugin and cleanup | ||
Fernando Perez
|
r1420 | IPython_doctest_plugin.egg-info: $(SRC) | ||
Matthias Bussonnier
|
r25147 | pip install . --prefix=$(PREFIX) | ||
Fernando Perez
|
r1334 | touch $@ | ||
clean: | ||||
rm -rf IPython_doctest_plugin.egg-info *~ *pyc build/ dist/ | ||||