From 9f547fe6a30d544f52f8201ba89cff36f79d792d Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Tue, 13 Nov 2018 10:33:35 +0100 Subject: add a test to catch unvendored dependencies --- setuptools/tests/test_virtualenv.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index e511c918..7b5fea17 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -1,3 +1,4 @@ +import distutils.command import glob import os import sys @@ -134,3 +135,14 @@ def test_test_command_install_requirements(bare_virtualenv, tmpdir): 'python setup.py test -s test', )).format(tmpdir=tmpdir)) assert tmpdir.join('success').check() + + +def test_no_missing_dependencies(bare_virtualenv): + """ + Quick and dirty test to ensure all external dependencies are vendored. + """ + for command in ('upload',):#sorted(distutils.command.__all__): + bare_virtualenv.run(' && '.join(( + 'cd {source}', + 'python setup.py {command} -h', + )).format(command=command, source=SOURCE_DIR)) -- cgit v1.2.3