Skip to content

Commit b4c7070

Browse files
committed
Exclude setup.py from unit test setuptools check.
1 parent 5327191 commit b4c7070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
run: |
124124
# make sure there are no (top-level) "import setuptools" or "import pkg_resources" statements,
125125
# since EasyBuild should not have a runtime requirement on setuptools
126-
SETUPTOOLS_IMPORTS=$(egrep -RI '^(from|import)[ ]*pkg_resources|^(from|import)[ ]*setuptools' * || true)
126+
SETUPTOOLS_IMPORTS=$(egrep --exclude setup.py -RI '^(from|import)[ ]*pkg_resources|^(from|import)[ ]*setuptools' * || true)
127127
test "x$SETUPTOOLS_IMPORTS" = "x" || (echo "Found setuptools and/or pkg_resources imports in easybuild/:\n${SETUPTOOLS_IMPORTS}" && exit 1)
128128
129129
- name: install sources

0 commit comments

Comments
 (0)