Commit Graph

3 Commits

Author SHA1 Message Date
Miro Hrončok
e247e4dbae %py(3)_check_import: Process .pth files in site(arch|lib)
Related: rhbz#1950291
2021-12-14 21:32:50 +01:00
Karolina Surma
62cbbbc802 Allow multiline arguments processing for %%py3_check_import
Fixes the regression introduced with the macro reimplementation.

Related: rhbz#1950291
2021-12-14 21:30:27 +01:00
Karolina Surma
eb3f38ce4b Add new options for %%py{3}_check_import: -f, -t, -e
-f: optionally read a file with module names to test
-t: bool flag - if set, filter only top-level modules
-e: optionally exclude module names matching the given glob (Unix
shell-style wildcards)
Importing all modules may cause bogus failures in some cases,
eg. when the imported code assumes there is an existing graphical window.
Such behaviour may be by design, hence for automatic processing it's
more convinient to - in some cases - check only for top-level modules
or filter out the troublemakers.

Related: rhbz#1950291
2021-12-14 21:28:45 +01:00