From 3def0d48f24e6ad3d4ef818206c1e5facdd2a171 Mon Sep 17 00:00:00 2001 From: MichaelFu512 Date: Thu, 16 May 2024 12:10:03 -0700 Subject: [PATCH] fix attempt 2 make_deps_diff --- evalml/tests/dependency_update_check/make_deps_diff.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evalml/tests/dependency_update_check/make_deps_diff.sh b/evalml/tests/dependency_update_check/make_deps_diff.sh index 144da71916..64d126f145 100755 --- a/evalml/tests/dependency_update_check/make_deps_diff.sh +++ b/evalml/tests/dependency_update_check/make_deps_diff.sh @@ -1,4 +1,4 @@ reqs_list=$(python -c "import os; from evalml.utils import get_evalml_pip_requirements; print('\n'.join(get_evalml_pip_requirements(os.getcwd())))") -allow_list=$(echo ${reqs_list} | grep -oE "[a-zA-Z]+[a-zA-Z_\-]*" | grep -v "post" | paste -d "|" -s -) +allow_list=$(echo ${reqs_list} | grep -oE "[a-zA-Z]+[a-zA-Z_\-]*" | grep -v "post" | tr "_" "-" | paste -d "|" -s -) echo "Allow list: ${allow_list}" -pip freeze | grep -v "evalml.git" | grep -E "${allow_list}" > "${DEPENDENCY_FILE_PATH}" +(pip freeze | grep -v "evalml.git") | tr "_" "-" | grep -E "${allow_list}" > "${DEPENDENCY_FILE_PATH}"