-
Notifications
You must be signed in to change notification settings - Fork 221
Python 3.14 Support #1723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.14 Support #1723
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1723 +/- ##
======================================
Coverage 45.4% 45.4%
======================================
Files 172 172
Lines 13501 13501
======================================
Hits 6131 6131
Misses 7370 7370
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks for this - when I'm back from travel I'll see if I can help out with the dependencies. |
0411054
to
e5fc3d4
Compare
e5fc3d4
to
61c85bb
Compare
…t --help argparse [1] enables colors by default since Python 3.14. This breaks asserting that the help text contains "--lg-coordinator=COORDINATOR_ADDRESS" due to escape codes and a different output format. Fix that by passing NO_COLOR=1 in the test's environment. [1] https://docs.python.org/3.14/library/argparse.html#color Signed-off-by: Bastian Krause <[email protected]>
…on 3.14 On Python3.14, sphinx 8.2.3 stumbles upon __annotate_func__ members: WARNING: autodoc: failed to import 'UDisks2Device.__annotate_func__' from module 'labgrid.util.agents.udisks2'; the following exception was raised: Traceback (most recent call last): File "sphinx/sphinx/util/inspect.py", line 461, in safe_getattr return getattr(obj, name, *defargs) AttributeError: type object 'UDisks2Device' has no attribute '__annotate_func__' This will be fixed once [1] is part of a release. Until then, exlcude the member from autodoc. [1] sphinx-doc/sphinx@7814844 Signed-off-by: Bastian Krause <[email protected]>
Signed-off-by: Bastian Krause <[email protected]>
61c85bb
to
0d07099
Compare
This is now ready for review, everything except for the pyusb DeprecationWarning is resolved. |
Signed-off-by: Bastian Krause <[email protected]>
0d07099
to
e7f9d7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thanks :)
Description
Python 3.14 was released on 2025-10-07. This PR is meant to track what's left to be done until we can advertise Python 3.14 support in labgrid.
labgrid itself:
SyntaxWarning: 'return' in a 'finally' block
)Dependencies:
kasa
extra) -> mashumaro: Release with Add support for Python 3.14 Fatal1ty/mashumaro#285 (mashumaro.exceptions.UnserializableField: Field "login_version" of type Optional[int] in DeviceConnectionParameters is not serializable
)Nice to have, but not critical:
DeprecationWarning: Due to '_pack_', the '_usb_descriptor_header' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
)Checklist