From b1996515481de68cdb1307abeefbd778a111d507 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Fri, 28 Mar 2014 12:28:52 +0100 Subject: [PATCH] run testsuite via setuptools --- Makefile | 5 ++++- setup.cfg | 2 ++ setup.py | 2 +- tox.ini | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 setup.cfg diff --git a/Makefile b/Makefile index 02954cf..17b4102 100644 --- a/Makefile +++ b/Makefile @@ -43,8 +43,11 @@ coverage: $(ISSO_PY_SRC) nosetests --with-doctest --with-coverage --cover-package=isso \ --cover-html isso/ specs/ +test: $($ISSO_PY_SRC) + python setup.py nosetests + clean: 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 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..fed1737 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[nosetests] +with-doctest=1 diff --git a/setup.py b/setup.py index d985106..0feaaa1 100644 --- a/setup.py +++ b/setup.py @@ -40,5 +40,5 @@ setup( entry_points={ 'console_scripts': ['isso = isso:main'], - }, + } ) diff --git a/tox.ini b/tox.ini index 045b8b7..95caa61 100755 --- a/tox.ini +++ b/tox.ini @@ -23,6 +23,6 @@ deps = deps = nose commands = - nosetests --with-doctest isso/ specs/ + python setup.py nosetests install_command = pip install --allow-external ipaddr --allow-unverified ipaddr {opts} {packages}