run testsuite via setuptools

This commit is contained in:
Martin Zimmermann 2014-03-28 12:28:52 +01:00
parent 0233619d35
commit b199651548
4 changed files with 8 additions and 3 deletions

View File

@ -43,8 +43,11 @@ coverage: $(ISSO_PY_SRC)
nosetests --with-doctest --with-coverage --cover-package=isso \ nosetests --with-doctest --with-coverage --cover-package=isso \
--cover-html isso/ specs/ --cover-html isso/ specs/
test: $($ISSO_PY_SRC)
python setup.py nosetests
clean: clean:
rm -f $(MAN) $(CSS) $(ISSO_JS_DST) $(ISSO_CSS_DST) rm -f $(MAN) $(CSS) $(ISSO_JS_DST) $(ISSO_CSS_DST)
.PHONY: clean site man init js css coverage .PHONY: clean site man init js css coverage test

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[nosetests]
with-doctest=1

View File

@ -40,5 +40,5 @@ setup(
entry_points={ entry_points={
'console_scripts': 'console_scripts':
['isso = isso:main'], ['isso = isso:main'],
}, }
) )

View File

@ -23,6 +23,6 @@ deps =
deps = deps =
nose nose
commands = commands =
nosetests --with-doctest isso/ specs/ python setup.py nosetests
install_command = install_command =
pip install --allow-external ipaddr --allow-unverified ipaddr {opts} {packages} pip install --allow-external ipaddr --allow-unverified ipaddr {opts} {packages}