mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
setup: show code-coverage tool versions in show-tools-versions.py
This commit is contained in:
parent
82b9b91775
commit
77189291c4
@ -73,3 +73,28 @@ try:
|
||||
except EnvironmentError, le:
|
||||
sys.stderr.write("Got exception invoking 'darcs': %s" % (le,))
|
||||
pass
|
||||
|
||||
try:
|
||||
import pkg_resources
|
||||
out = str(pkg_resources.require("coverage"))
|
||||
print
|
||||
print "coverage:", out.replace("\n", " ")
|
||||
except (ImportError, EnvironmentError), le:
|
||||
sys.stderr.write("Got exception using 'pkg_resources' to get the version of coverage: %s" % (le,))
|
||||
pass
|
||||
except pkg_resources.DistributionNotFound, le:
|
||||
sys.stderr.write("pkg_resources reported no trialcoverage package installed: %s" % (le,))
|
||||
pass
|
||||
|
||||
try:
|
||||
import pkg_resources
|
||||
out = str(pkg_resources.require("trialcoverage"))
|
||||
print
|
||||
print "trialcoverage:", out.replace("\n", " ")
|
||||
except (ImportError, EnvironmentError), le:
|
||||
sys.stderr.write("Got exception using 'pkg_resources' to get the version of trialcoverage: %s" % (le,))
|
||||
pass
|
||||
except pkg_resources.DistributionNotFound, le:
|
||||
sys.stderr.write("pkg_resources reported no trialcoverage package installed: %s" % (le,))
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user