diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2015-04-09 22:08:02 +0200 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2015-04-09 22:08:02 +0200 |
commit | 72eab7fbb0381091b0cbbc8292dbf742176f7393 (patch) | |
tree | 3f01c703cb52c7fdcb68dccd824f479565ddc671 /testing | |
parent | e9a49c10c6bc4b8d4b6e78dfc5194df1db56a102 (diff) | |
download | setuptools-scm-72eab7fbb0381091b0cbbc8292dbf742176f7393.tar.gz |
extend reporting for pytest
Diffstat (limited to 'testing')
-rw-r--r-- | testing/conftest.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/conftest.py b/testing/conftest.py index 5648e80..0079446 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -1,8 +1,11 @@ import os os.environ['SETUPTOOLS_SCM_DEBUG'] = '1' - +VERSION_PKGS = ['setuptools', 'setuptools_scm'] def pytest_report_header(): import pkg_resources - version = pkg_resources.get_distribution('setuptools_scm').version - return ['setuptools_scm version ' + version] + res = [] + for pkg in VERSION_PKGS: + version = pkg_resources.get_distribution(pkg).version + res.append('%s version %s' % (pkg, version)) + return res |