From e05c852ffe24688be46c748aaa7064a710c22297 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 4 Mar 2024 13:43:51 -0600 Subject: [PATCH] Normalize package name detected by pip list (#25) --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 2eb4ced..ecb47d5 100644 --- a/action.yaml +++ b/action.yaml @@ -23,7 +23,7 @@ runs: echo ::group::Install dependencies # Remove this package from constraints - PKG_NAME=$(pip list --local --editable --format json | jq '.[0].name' -r) + PKG_NAME=$(pip list -l -e --format json | jq '.[0].name' -r | tr _ -) grep -v "^${PKG_NAME}@" ${GITHUB_ACTION_PATH}/constraints.txt > constraints.txt # Install dependencies, including any 'test' extras, as well as pytest-cov python -m pip install -U -e .[test] pytest-cov -c constraints.txt