Skip to content

PyPy3.11 and CPython 3.14/3.14t support#482

Merged
fohrloop merged 17 commits intomainfrom
issue-481-pypy-311
Jul 26, 2025
Merged

PyPy3.11 and CPython 3.14/3.14t support#482
fohrloop merged 17 commits intomainfrom
issue-481-pypy-311

Conversation

@fohrloop
Copy link
Copy Markdown
Member

@fohrloop fohrloop commented Jul 25, 2025

Closes: #414
Closes: #481

Add CI tests for PyPy3.11, CPython 3.14 and CPython 3.14 free-threaded

@fohrloop fohrloop changed the title PyPy3.11 support PyPy3.11 and CPython 3.14/3.14t support Jul 25, 2025
@fohrloop
Copy link
Copy Markdown
Member Author

fohrloop commented Jul 26, 2025

The pipelines are failing

1) Free-threaded "3.14t" python not found

See the pipelines outcome here. The errors were:

Seems that were still using old actions/setup-python (5.1) version at few places.

2) Test coverage on ubuntu-latest 3.14

See here. Uncovered lines:

Name                                  Stmts   Miss Branch BrPart  Cover   Missing
---------------------------------------------------------------------------------
src/wakepy/dbus_adapters/jeepney.py      27      0      4      1    97%   21->24
---------------------------------------------------------------------------------
TOTAL                                  1352      0    298      1    99%

Debugging

  • It's not missing jeepney. If uninstalling jeepney and running the tests, getting 37% test coverage on ubuntu.

@fohrloop
Copy link
Copy Markdown
Member Author

fohrloop commented Jul 26, 2025

Got the error on python3.14t (and 3.14) reproduced locally. The "test coverage issue" looks like this:

image

So this was not a line coverage but a branch coverage issue. I don't know why coveragepy would assume that there's a branch here in the class definition. The problem was fixed by adding a docstring to the class.

@fohrloop fohrloop merged commit 246d725 into main Jul 26, 2025
21 checks passed
@fohrloop fohrloop deleted the issue-481-pypy-311 branch July 26, 2025 12:48
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.

Add tests for PyPy3.11 Add python 3.14 tests to CI

1 participant