Skip to content

Add support for Python 3.14 - #130

Merged
diazona merged 3 commits into
masterfrom
python-3.14/1/dev
Nov 10, 2025
Merged

Add support for Python 3.14#130
diazona merged 3 commits into
masterfrom
python-3.14/1/dev

Conversation

@diazona

@diazona diazona commented Nov 9, 2025

Copy link
Copy Markdown
Contributor

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

diazona commented Nov 9, 2025

Copy link
Copy Markdown
Contributor Author

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

diazona commented Nov 9, 2025

Copy link
Copy Markdown
Contributor Author

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.

2 participants