Add Python 3.14 Support #371
Draft
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.
Description
This PR adds support for Python 3.14 in Scenic, including CI and dependency updates.
IMPORTANT: It is not ready to merge until pygame and python-fcl supports Python 3.14.
CI Support:
Added Python 3.14 to the GitHub Actions test matrix (run-tests.yml)
Enabled allow-prereleases: true to test against 3.14.0rc1
Tox support:
Extended tox.ini to include 3.14 environments
Worked around an issue where scenic[metadrive] was being installed even when python_version > 3.11 by listing metadrive-simulator directly with the correct version guard
Pre-commit updates:
Updated black and isort to run under Python 3.14
Sphinx compatibility:
Increased the upper bound for sphinx to <8 to allow versions compatible with Python 3.14
Patched object_description in conf.py to accept **kwargs (for compatibility with Sphinx ≥7.2 which passes a _seen kwarg) while remaining backward-compatible with older versions
Documentation:
Added a note in the simulator docs reminding users that not all simulators may support the same range of Python versions; users should verify support per simulator.
Issue Link
Checklist
pytestand/or other meansAdditional Notes