From 8fec29be0b58d91a2f29422877724f4bd72a5338 Mon Sep 17 00:00:00 2001 From: jaraco Date: Sun, 22 Aug 2010 13:28:16 +0000 Subject: [PATCH] Updated setup script to disallow the use of setup.py test in favor of the recommended setup.py nosetests --- setup.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index a0d4003..2828b6c 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,13 @@ import os from setuptools import find_packages +from distutils.cmd import Command + +class DisabledTestCommand(Command): + user_options = [] + def __init__(self, dist): + raise RuntimeError("test command not supported on svg.charts. Use setup.py nosetests instead") + _this_dir = os.path.dirname(__file__) _long_description = open(os.path.join(_this_dir, 'README.txt')).read().strip() @@ -35,11 +42,14 @@ setup_params = dict( ], entry_points = { }, - tests_require=[ - 'nose>=0.10', + # Don't use setup.py test - nose doesn't support it + # see http://code.google.com/p/python-nose/issues/detail?id=219 + cmdclass=dict( + test=DisabledTestCommand, + ), + setup_requires=[ + 'nose>=0.11', ], - test_suite = "nose.collector", - ) if __name__ == '__main__':