aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-10-19 08:39:30 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2019-10-21 17:32:25 -0700
commitcd84510713ada48bf33d4efa749c2952e3fc1a49 (patch)
tree75eeb07a60042f8fe4ff608c37d1bbe3cd6c460a /setuptools/command
parent1362c8c37355f74b5aa9a8afb749aa9464bb58fb (diff)
downloadexternal_python_setuptools-cd84510713ada48bf33d4efa749c2952e3fc1a49.tar.gz
external_python_setuptools-cd84510713ada48bf33d4efa749c2952e3fc1a49.tar.bz2
external_python_setuptools-cd84510713ada48bf33d4efa749c2952e3fc1a49.zip
Deprecate the test command
Provide a warning to users. Suggest using tox as an alternative generic entry point. Refs #1684
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/test.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 973e4eb2..c148b38d 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -74,7 +74,7 @@ class NonDataProperty:
class test(Command):
"""Command to run unit tests after in-place build"""
- description = "run unit tests after in-place build"
+ description = "run unit tests after in-place build (deprecated)"
user_options = [
('test-module=', 'm', "Run 'test_suite' in specified module"),
@@ -214,6 +214,14 @@ class test(Command):
return itertools.chain(ir_d, tr_d, er_d)
def run(self):
+ self.announce(
+ "WARNING: Testing via this command is deprecated and will be "
+ "removed in a future version. Users looking for a generic test "
+ "entry point independent of test runner are encouraged to use "
+ "tox.",
+ log.WARN,
+ )
+
installed_dists = self.install_dists(self.distribution)
cmd = ' '.join(self._argv)