Skip to content

Fix deps checker including any package with post in the name#4268

Merged
christopherbunn merged 4 commits intomainfrom
fix_deps_checker
Aug 10, 2023
Merged

Fix deps checker including any package with post in the name#4268
christopherbunn merged 4 commits intomainfrom
fix_deps_checker

Conversation

@christopherbunn
Copy link
Copy Markdown
Contributor

@christopherbunn christopherbunn commented Aug 10, 2023

Fixes issue with our automated dependency checker where we are including any package with post in the name/version number.

Resolves #4269

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 10, 2023

Codecov Report

Merging #4268 (05f30a5) into main (8d7e235) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #4268   +/-   ##
=====================================
  Coverage   99.7%   99.7%           
=====================================
  Files        355     355           
  Lines      38915   38915           
=====================================
  Hits       38794   38794           
  Misses       121     121           

@@ -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_\-]*" | paste -d "|" -s -)
allow_list=$(echo ${reqs_list} | grep -oE "[a-zA-Z]+[a-zA-Z_\-]*" | grep -v "post" | tr "_" "-" | paste -d "|" -s -)
Copy link
Copy Markdown
Contributor Author

@christopherbunn christopherbunn Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added tr to replace underscores with hyphens since pip does that automatically apparently

Copy link
Copy Markdown
Contributor

@eccabay eccabay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏

@christopherbunn christopherbunn merged commit b573631 into main Aug 10, 2023
@christopherbunn christopherbunn deleted the fix_deps_checker branch August 10, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automated dependency checker includes any package that includes post in version name

3 participants