Skip to content

Conversation

@diazona
Copy link
Contributor

@diazona diazona commented Nov 9, 2025

This PR adds testing for Python 3.14 and adds it to the list of supported versions.

It's a bit overdue, but better late than never.

@diazona diazona added this to the 0.10 milestone Nov 9, 2025
@diazona diazona requested review from coordt and redtoad November 9, 2025 04:40
@diazona
Copy link
Contributor Author

diazona commented Nov 9, 2025

Looks like there's a conflict between Python 3.14 and assertion rewriting in pytest 6.2.4. I'll track down a suitable minimum pytest version and update accordingly.

@diazona diazona marked this pull request as draft November 9, 2025 04:43
I had to set the minimum pytest version for Python 3.14 to pytest 7.3.2,
because older versions of pytest use ast.Str, which was removed in 3.14.
The main purpose of this commit is to enable testing on Python 3.14 in
CI. But Python 3.14 requires a different minimum version of pytest from
any earlier version, meaning that we now have three different minimum
pytest versions that need to be tested depending on the Python version,
and that's very complicated to express by including and excluding
specific configurations as we were doing before. So I refactored
the matrix of versions to take advantage of the ability to have objects
as matrix values, meaning that each Python version can be accompanied by
the specific minimum pytest version it requires in the matrix. This is
much easier to understand and maintain, and it should also have us
running fewer CI jobs overall (since we're no longer going to run
combinations like pytest 6.2.4 on Python 3.7-3.9, which served no
purpose).
@diazona
Copy link
Contributor Author

diazona commented Nov 9, 2025

Got it working now 🎉

@diazona diazona marked this pull request as ready for review November 9, 2025 09:45
@diazona diazona merged commit bbe3133 into master Nov 10, 2025
46 checks passed
@diazona diazona deleted the python-3.14/1/dev branch November 10, 2025 08:23
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