Browse Source

Updated setup script to disallow the use of setup.py test in favor of the recommended setup.py nosetests

pull/8/head
jaraco 15 years ago
parent
commit
8fec29be0b
  1. 18
      setup.py

18
setup.py

@ -5,6 +5,13 @@
import os import os
from setuptools import find_packages 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__) _this_dir = os.path.dirname(__file__)
_long_description = open(os.path.join(_this_dir, 'README.txt')).read().strip() _long_description = open(os.path.join(_this_dir, 'README.txt')).read().strip()
@ -35,11 +42,14 @@ setup_params = dict(
], ],
entry_points = { entry_points = {
}, },
tests_require=[ # Don't use setup.py test - nose doesn't support it
'nose>=0.10', # 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__': if __name__ == '__main__':

Loading…
Cancel
Save