Skip to content

Conversation

Bastian-Krause
Copy link
Member

@Bastian-Krause Bastian-Krause commented Aug 28, 2025

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:

Dependencies:

Nice to have, but not critical:

Checklist

  • PR has been tested

Copy link

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.4%. Comparing base (b951de1) to head (e7f9d7d).
⚠️ Report is 5 commits behind head on master.

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           
Flag Coverage Δ
3.10 45.4% <ø> (ø)
3.11 45.4% <ø> (ø)
3.12 45.4% <ø> (ø)
3.13 45.3% <ø> (ø)
3.14 45.3% <ø> (?)
3.9 45.4% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@threexc
Copy link
Contributor

threexc commented Aug 28, 2025

Thanks for this - when I'm back from travel I'll see if I can help out with the dependencies.

…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]>
@Bastian-Krause
Copy link
Member Author

This is now ready for review, everything except for the pyusb DeprecationWarning is resolved.

@Bastian-Krause Bastian-Krause marked this pull request as ready for review October 9, 2025 16:08
Copy link
Member

@Emantor Emantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks :)

@Emantor Emantor merged commit fd3f528 into labgrid-project:master Oct 10, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants