summaryrefslogtreecommitdiff
path: root/pbr/packaging.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2017-11-07 04:46:19 +0000
committerStephen Finucane <sfinucan@redhat.com>2018-01-03 15:10:14 +0000
commit113685e1b94df9dd2945adbdda757a545b09598c (patch)
treeff0672434e47fe8c17e7e3f43ac42d5286c70730 /pbr/packaging.py
parent73cc4189caa8b8eb73855025529e5f820fb76a30 (diff)
downloadpbr-113685e1b94df9dd2945adbdda757a545b09598c.tar.gz
Deprecate testr and nose integration
These are not recommended for use in OpenStack anymore and both nose and testr offer native setuptools commands that can be manually aliased to 'test' on a per-project basis if necessary. Deprecate with an eye to removal in the future. Change-Id: I753f2ffe8b223b180b8ed813d879b3a28b47a1ab Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'pbr/packaging.py')
-rw-r--r--pbr/packaging.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index 99eff52..0177437 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -27,6 +27,7 @@ import email.errors
import os
import re
import sys
+import warnings
import pkg_resources
import setuptools
@@ -259,8 +260,14 @@ try:
"""Fallback test runner if testr is a no-go."""
command_name = 'test'
+ description = 'DEPRECATED: Run unit tests using nose'
def run(self):
+ warnings.warn('nose integration in pbr is deprecated. Please use '
+ 'the native nose setuptools configuration or call '
+ 'nose directly',
+ DeprecationWarning)
+
# Can't use super - base class old-style class
commands.nosetests.run(self)