comparison setup.py @ 0:0b2a3581c48d

Import initial ''bitten'' source.
author cmlenz
date Sun, 22 May 2005 15:49:22 +0000
parents
children 32e9f0e94c69
comparison
equal deleted inserted replaced
-1:000000000000 0:0b2a3581c48d
1 from distutils.core import setup, Command
2 from unittest import TextTestRunner
3
4
5 class test(Command):
6 description = "Runs the unit tests"
7 user_options = [('test-suite=', 's', "Name of the unittest suite to run")]
8
9 def initialize_options(self):
10 self.test_suite = None
11
12 def finalize_options(self):
13 pass
14
15 def run(self):
16 print 'Hey yo'
17 print self.test_suite
18 suite = __import__(self.test_suite, locals(), globals())
19 runner = unittest.TextTestRunner()
20 TextTestRunner.run(suite)
21
22
23 setup(name='bitten', version='1.0',
24 packages=['bitten', 'bitten.general', 'bitten.python'],
25 cmdclass={'test': test})
Copyright (C) 2012-2017 Edgewall Software