Re: [Python-Dev] adding a "test" fork to a setup.py package

2007-09-11 Thread Bill Janssen
It's actually not bad. I put the test code and the data files in a "test" subdirectory of my distribution, then added the following to the setup.py file: class Test (Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass

Re: [Python-Dev] adding a "test" fork to a setup.py package

2007-09-11 Thread Thomas Heller
Barry Warsaw schrieb: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sep 11, 2007, at 2:12 PM, Bill Janssen wrote: > >> I'm packaging up the SSL support for Python 2.3, and I'd like to be >> able to include the unit test for it along with the package. Ideally, >> I'd like to be able to

Re: [Python-Dev] adding a "test" fork to a setup.py package

2007-09-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 11, 2007, at 2:12 PM, Bill Janssen wrote: > I'm packaging up the SSL support for Python 2.3, and I'd like to be > able to include the unit test for it along with the package. Ideally, > I'd like to be able to say > > % python setup.py buil

[Python-Dev] adding a "test" fork to a setup.py package

2007-09-11 Thread Bill Janssen
I'm packaging up the SSL support for Python 2.3, and I'd like to be able to include the unit test for it along with the package. Ideally, I'd like to be able to say % python setup.py build % python setup.py test and have the regrtest.py module run my tests. Any ideas (examples) of how t