Open eighthave opened 11 years ago
How do most other packages handle this? This warning is rather annoying:
$ python2 setup.py check
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
I haven't found a very clear standard in the way that people are incorporating tests. There is a pure distutils approach that I've seen, but it looked a lot more complicated. So I've used this approach. Having setuptools installed makes the warning go away.
Fyi, @eighthave is creating a python-pgpdump package in Debian, hence this ;)
its done and already in Debian: http://packages.qa.debian.org/p/python-pgpdump.html :-D
I'd like this to be merged as well, or at least something comparable to make it straightforward to run the tests in a standard way.
The setup.py file does not include the test script. That is the standard interface for running the tests, and means that things that wrap setup.py will automatically run the tests. Such things include Debian packaging, pip, etc.
This patch adds test support while maintaining distutils compatibility: