setup: if the string '--reporter=bwverbose-coverage' appears on sys.argv then you need trialcoverage

This commit is contained in:
Zooko O'Whielacronx 2010-05-21 05:22:26 -07:00
parent 35efdf04ca
commit 18922ac618

View File

@ -133,6 +133,11 @@ setup_requires.extend(['setuptools_trial >= 0.5'])
# to setup_requires. http://pypi.python.org/pypi/setuptools_darcs # to setup_requires. http://pypi.python.org/pypi/setuptools_darcs
setup_requires.append('setuptools_darcs >= 1.1.0') 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. # stdeb is required to produce Debian files with the "sdist_dsc" command.
if "sdist_dsc" in sys.argv: if "sdist_dsc" in sys.argv:
setup_requires.append('stdeb >= 0.3') setup_requires.append('stdeb >= 0.3')