Repository navigation
Drop Python <3.11 and add support for 3.13, 3.14 and 3.15 - #236
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also fix the type annotation of the `parent` parameter in `CppFile.__init__`, which is a `pytest.Collector`, as already declared by `CppFile.from_parent`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GoogleTest 1.11.0 declares a `cmake_minimum_required` below 3.5, which is rejected by the CMake version available in the runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python 3.10 reached end of life in October 2026, so this raises the minimum supported version to 3.11.
Changes
python_requires, classifiers, the CI matrix and tox. The CI compile job moves from 3.8 to 3.11.pyupgrade --py311-plus, then the pre-commit hooks to remove the imports it left unused and reorder the rest.CppFile.__init__now declaresparent: pytest.Collectorinstead ofpytest.Item, matchingCppFile.from_parent. There is no runtime change, but the mypy pre-commit hook fails onplugin.pywithout it.Testing
Tested locally on Windows, where the C++ test executables were not built, so this PR's CI is the first full run.
FileNotFoundErrorfrom the missing executables.g++and run through the plugin. They gave 2 passed and 3 failed, and the failures are the intentional ones incatch2_failure.cpp.Boost.Test and GoogleTest have not been run against these changes, and neither Python 3.11 nor 3.13 was run locally.
🤖 Generated with Claude Code