Skip to content

Commit

Permalink
better module detection for validator
Browse files Browse the repository at this point in the history
  • Loading branch information
filiparag committed Oct 22, 2021
1 parent 241382a commit d0ccd52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ modules_user="$(
module_import_user() {
error_msg='Potentially missing dependency in setup.py for user imported module '
for m in $modules_user; do
if [ "$m" = 'testbench' ]; then
continue
fi
m="$(echo "$m" | sed 's/\..*//')"
error_subj="$m"
grep -q "install_requires=.*'$m'" ./setup.py || return 2
done
Expand All @@ -79,6 +83,10 @@ modules_test="$(
module_import_test() {
error_msg='Potentially missing dependency in setup.py for Testbench imported module '
for m in $modules_test; do
if [ "$m" = 'testbench' ]; then
continue
fi
m="$(echo "$m" | sed 's/\..*//')"
error_subj="$m"
grep -q "install_requires=.*'$m'" ./setup.py || return 2
done
Expand Down

0 comments on commit d0ccd52

Please sign in to comment.