QMK Firmware CLI requirements in devel:languages:python
Hello, I would like to include the QMK cli program in Factory. qmk_cli helps to customize, compile and flash the QMK firmware to supported keyboards. To function correctly, qmk_cli needs some python packages that are not in Factory at the moment: - cursor - dotty-dict - halo - hid - hjson - log_symbols - milc - nose - spinners - types-colorama I created the packages already in home:iDesmI:qmk and am soon submitting them to devel:languages:python python-hid in particular requires hidapi libraries but rpmlint complains that I can't name libhidapi-hidraw and libhidapi-libusb explicitly. How to proceed? <https://qmk.fm/> <https://github.com/qmk/qmk_cli> -- Enrico Belleri
On Friday 2024-03-01 21:18, Enrico Belleri wrote:
python-hid in particular requires hidapi libraries but rpmlint complains that I can't name libhidapi-hidraw and libhidapi-libusb explicitly. How to proceed?
hid/__init__.py: 'libhidapi-hidraw.so.0', therefore %if "%_lib" == "lib64" Requires: libhidapi-hidraw.so.0()(64bit) %else Requires: libhidapi-hidraw.so.0 %endif
The package is noarch since it contains no binary, so it always tries to install "libhidapi-hidraw.so.0" and not the 64bit counterpart. On 01/03/2024 22:03, Jan Engelhardt wrote:
On Friday 2024-03-01 21:18, Enrico Belleri wrote:
python-hid in particular requires hidapi libraries but rpmlint complains that I can't name libhidapi-hidraw and libhidapi-libusb explicitly. How to proceed?
hid/__init__.py: 'libhidapi-hidraw.so.0',
therefore
%if "%_lib" == "lib64" Requires: libhidapi-hidraw.so.0()(64bit) %else Requires: libhidapi-hidraw.so.0 %endif
-- Enrico Belleri
On Friday 2024-03-01 23:09, Enrico Belleri wrote:
hid/__init__.py: 'libhidapi-hidraw.so.0',
The package is noarch since it contains no binary, so it always tries to install "libhidapi-hidraw.so.0" and not the 64bit counterpart.
Well you just can't make it noarch then, no matter what rpmlint tells you.
Am 01.03.24 um 21:18 schrieb Enrico Belleri:
Hello, I would like to include the QMK cli program in Factory. qmk_cli helps to customize, compile and flash the QMK firmware to supported keyboards. To function correctly, qmk_cli needs some python packages that are not in Factory at the moment:
The real runtime dependency list is vastly different from your list: https://github.com/qmk/qmk_cli/blob/d3917b10e7621632098028a68982727b10ec83f5... install_requires = hid milc>=1.6.8 pyusb setuptools>=45 # qmk_firmware packages dotty-dict hjson jsonschema>=4 pillow pygments pyserial #####
- nose
Absolutely not. You won't get a long abandoned package reintroduced into Factory. https://github.com/search?q=repo%3Aqmk%2Fqmk_cli%20nose&type=code does not show anything meaningful. You don't even have a %check section executing nose. Get rid of it. Please find out if upstream has some kind of tests and execute them in %check.
I created the packages already in home:iDesmI:qmk and am soon submitting them to devel:languages:python
python-hid in particular requires hidapi libraries but rpmlint complains that I can't name libhidapi-hidraw and libhidapi-libusb explicitly. How to proceed?
Create a rpmlintrc filter telling it this is fine. rpm can't automatically defer requirements from the ctypes loader.
- Ben
participants (3)
-
Ben Greiner
-
Enrico Belleri
-
Jan Engelhardt