Some time ago we've had python3.11 land in Rawhide, with a rebuild of dependent
packages.
One of my packages, liquidctl, fails to build with the new Python, and since my
knowledge of the language
stops at "I used it to rewrite some bash scripts", I'd need some help.
Strictly speaking, the package builds fine, and it passes all tests, save one -
the doctest,
which, as I understand it, somehow checks if the doc-comments match the code.
The doctest fails in a couple of places, but to give you an example, here's one
of them:
______________ [doctest] liquidctl.driver.ddr4.VengeanceRgb.Mode
_______________
320 A collection of name/value pairs.
321
322 Access them by:
323
324 - attribute access::
325
326 >>> Mode.FIXED
UNEXPECTED EXCEPTION: NameError("name 'Mode' is not defined")
Traceback (most recent call last):
File "/usr/lib64/python3.11/doctest.py", line 1350, in __run
exec(compile(example.source, filename, "single",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest liquidctl.driver.ddr4.VengeanceRgb.Mode[0]>", line 1, in
<module>
NameError: name 'Mode' is not defined
/builddir/build/BUILD/liquidctl-1.9.1/liquidctl/driver/ddr4.py:326:
UnexpectedException
The full build log can be found here:
https://kojipkgs.fedoraproject.org//work/tasks/7849/88567849/build.log
If someone knows how to fix this, help will be appreciated.
A.FI.
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure