From: Zooko O'Whielacronx Date: Fri, 21 May 2010 12:22:26 +0000 (-0700) Subject: setup: if the string '--reporter=bwverbose-coverage' appears on sys.argv then you... X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=18922ac61875b67d159e7a6eb58d2a878e36c5d1;p=tahoe-lafs%2Ftahoe-lafs.git setup: if the string '--reporter=bwverbose-coverage' appears on sys.argv then you need trialcoverage --- diff --git a/setup.py b/setup.py index b131188a..785a39a2 100644 --- a/setup.py +++ b/setup.py @@ -133,6 +133,11 @@ setup_requires.extend(['setuptools_trial >= 0.5']) # to setup_requires. http://pypi.python.org/pypi/setuptools_darcs setup_requires.append('setuptools_darcs >= 1.1.0') +# trialcoverage is required if you want the "trial" unit test runner to have a +# "--reporter=bwverbose-coverage" option which produces code-coverage results. +if "--reporter=bwverbose-coverage" in sys.argv: + setup_requires.append('trialcoverage >= 0.3.10') + # stdeb is required to produce Debian files with the "sdist_dsc" command. if "sdist_dsc" in sys.argv: setup_requires.append('stdeb >= 0.3')