feat: add Python 3.14 support to CI, CLI schema, and package classifiers#6936
Open
ofir-frd wants to merge 1 commit intolangchain-ai:mainfrom
Open
feat: add Python 3.14 support to CI, CLI schema, and package classifiers#6936ofir-frd wants to merge 1 commit intolangchain-ai:mainfrom
ofir-frd wants to merge 1 commit intolangchain-ai:mainfrom
Conversation
Adds Python 3.14 to: - CI schema-check matrix - CLI schema enum (schema.json, schema.v0.json, generate_schema.py) - CLI help text - All package classifiers (langgraph, prebuilt, checkpoint libs) - Test expectations Closes langchain-ai#5253 Co-Authored-By: Claude Sonnet 4.6 <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.
Problem
Python 3.14 support is incomplete in several places. Closes #5253.
The test CI matrices (
_test.yml,_test_langgraph.yml,_integration_test.yml) already include3.14onmain, but the following gaps remain:ci.ymlschema-check job: matrix only lists3.13and hardcodespython-version: "3.13"in the setup stepgenerate_schema.py:python_versionenum stops at"3.13"schema.json/schema.v0.json: same gap; both also missing trailing newlinecli.pyhelp text: still lists3.11, 3.12, or 3.13libs/langgraph/pyproject.toml: noPython :: 3.14classifierlibs/prebuilt/pyproject.toml: sameSolution
8 files changed, 17 insertions, 8 deletions — all additive, no breaking changes.
.github/workflows/ci.yml"3.14"to schema-check matrix; fix hardcodedpython-version: "3.13"→${{ matrix.python-version }}libs/cli/generate_schema.py"3.14"topython_versionenumlibs/cli/schemas/schema.json"3.14"to enum; fix missing trailing newlinelibs/cli/schemas/schema.v0.jsonlibs/cli/langgraph_cli/cli.py3.14libs/langgraph/pyproject.tomlProgramming Language :: Python :: 3.14classifierlibs/prebuilt/pyproject.tomllibs/cli/tests/unit_tests/test_config.py"3.14"totest_validate_config,test_docker_tag_different_python_versions_with_distro, andtest_docker_tag_with_api_versionNotes
"version": "v0"is preserved — adding a new enum value is backward-compatible and does not warrant a version bumpMIN_PYTHON_VERSION/DEFAULT_PYTHON_VERSIONunchanged: validation inconfig.pyuses a minimum version check (>= 3.11), so3.14passes automaticallylibs/checkpoint,libs/checkpoint-postgres,libs/checkpoint-sqlitedo not have Python version classifiers, so no changes needed thereTesting
The CI test matrices (
_test.yml/_test_langgraph.yml) already cover Python 3.14 onmain. With this PR, the schema-check job will also validate against 3.14. The updatedtest_config.pytests confirm3.14passesvalidate_configand generates the correct Docker tags.🤖 Generated with Claude Code