Hi,

[…]
+ /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f
/builddir/build/BUILD/input-remapper-2.1.1-build/input-remapper-2.1.1-1.fc42.x86_64-pyproject-modules
Check import: inputremapper
Check import: inputremapper.bin
Check import: inputremapper.bin.input_remapper_control
Check import: inputremapper.bin.input_remapper_gtk

(import_all_modules.py:1580): Gtk-WARNING **: 01:44:47.167: cannot open display:
error: Bad exit status from /var/tmp/rpm-tmp.QjGEES (%check)
     Bad exit status from /var/tmp/rpm-tmp.QjGEES (%check)

This comes from %pyproject_check_import macro which doesn't know anything about pytest and its deselected tests.

You'll need to tweak the list of the importable modules, so that the problematic ones are skipped. You can utilize the `-e` option for that: it takes globs with patterns to exclude the matching module names and can be used multiple times. In this case that would mean adding `-e inputremapper.bin.input_remapper_gtk` to the macro invocation. Or maybe even `-e inputremapper.bin.*` if contents of the bin/ module is not designed to be imported.

Hope this helps - I'm also on Fedora Matrix if you have any questions.

--
Karolina Surma (she/her/hers)
Software Engineer
Python Maintenance Team, Red Hat

--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to