From 18922ac61875b67d159e7a6eb58d2a878e36c5d1 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 21 May 2010 05:22:26 -0700 Subject: [PATCH] setup: if the string '--reporter=bwverbose-coverage' appears on sys.argv then you need trialcoverage --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) 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') -- 2.37.2