Skip to content

Commit

Permalink
setup: if the string '--reporter=bwverbose-coverage' appears on sys.a…
Browse files Browse the repository at this point in the history
…rgv then you need trialcoverage
  • Loading branch information
zooko committed May 21, 2010
1 parent 35efdf0 commit 18922ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Expand Up @@ -133,6 +133,11 @@ def read_version_py(infname):
# 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')
Expand Down

0 comments on commit 18922ac

Please sign in to comment.