From 671fa2b94f4daf39ffd74a3d51b5ab8c96af2b43 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 27 Mar 2020 11:22:39 -0500 Subject: [PATCH] Stop installing test-requirements with projects This is a test of installing openstack and then seeing if it works. OpenStack components do not need test-requirements to operate, that's why they are test-requirements. Additionally, as we look forward to depsolver pip, this is going to screw us because we don't apply constraints to linters, which are expressed in - you guessed it, test-requirements. Change-Id: I8f24b839bf42e2fb9803dc7df3a30ae20cf264eb (cherry picked from commit 09b5b05c471985ad53c4b321e993101f007ee915) (cherry picked from commit d3ab04bcb140370878dbf3bf2111938217218d76) (cherry picked from commit 6a500ad269e864eb6c3f5afb7c849ce9098ad11a) --- inc/python | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/inc/python b/inc/python index 0acb2df645..ffbe11aabf 100644 --- a/inc/python +++ b/inc/python @@ -349,13 +349,6 @@ function pip_install { $xtrace - # Also install test requirements - local install_test_reqs="" - local test_req="${package_dir}/test-requirements.txt" - if [[ -e "$test_req" ]]; then - install_test_reqs="-r $test_req" - fi - # adding SETUPTOOLS_SYS_PATH_TECHNIQUE is a workaround to keep # the same behaviour of setuptools before version 25.0.0. # related issue: https://github.com/pypa/pip/issues/3874 @@ -365,7 +358,7 @@ function pip_install { no_proxy="${no_proxy:-}" \ PIP_FIND_LINKS=$PIP_FIND_LINKS \ SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite \ - $cmd_pip $upgrade $install_test_reqs \ + $cmd_pip $upgrade \ $@ result=$?