[PR #6881] fix(cli): guard inmem extra on unsupported Python versions #5376

Open
opened 2026-02-20 17:51:37 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6881

State: open
Merged: No


Summary

Fixes #6505.

Installing langgraph-cli[inmem] on Python 3.14 currently pulls transitive dependencies that may fail to build in some environments. This change makes the failure mode deterministic and user-friendly.

Changes

  • Constrained inmem extra deps to Python >=3.11,<3.14 in libs/cli/pyproject.toml.
  • Updated libs/cli/uv.lock markers to match the same Python range.
  • Added _inmem_python_version_note() in libs/cli/langgraph_cli/cli.py and reused it in langgraph dev import-error handling.
  • Added unit tests for old/supported/new Python version note behavior.
  • Added a short README note documenting the supported Python range for inmem.

Validation

  • make format
  • make lint
  • uv run pytest tests/unit_tests/test_cli.py -q

Note: make test currently reports 2 pre-existing failures in tests/unit_tests/cli/test_cli.py unrelated to this change (test_dockerfile_command_with_docker_compose, test_build_generate_proper_build_context).

AI assistance disclosure

I used AI assistance in a limited scope for unit-test drafting, code review, and formatting checks.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6881 **State:** open **Merged:** No --- ## Summary Fixes #6505. Installing `langgraph-cli[inmem]` on Python 3.14 currently pulls transitive dependencies that may fail to build in some environments. This change makes the failure mode deterministic and user-friendly. ## Changes - Constrained `inmem` extra deps to Python `>=3.11,<3.14` in `libs/cli/pyproject.toml`. - Updated `libs/cli/uv.lock` markers to match the same Python range. - Added `_inmem_python_version_note()` in `libs/cli/langgraph_cli/cli.py` and reused it in `langgraph dev` import-error handling. - Added unit tests for old/supported/new Python version note behavior. - Added a short README note documenting the supported Python range for `inmem`. ## Validation - `make format` - `make lint` - `uv run pytest tests/unit_tests/test_cli.py -q` Note: `make test` currently reports 2 pre-existing failures in `tests/unit_tests/cli/test_cli.py` unrelated to this change (`test_dockerfile_command_with_docker_compose`, `test_build_generate_proper_build_context`). ## AI assistance disclosure I used AI assistance in a limited scope for unit-test drafting, code review, and formatting checks.
yindo added the pull-request label 2026-02-20 17:51:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#5376