ci(infra): harden Dependabot version-bound preservation (#37510)

Dependabot has been stripping upper/lower bounds from internal
`langchain-*` deps in partner `pyproject.toml` files (e.g. #37288
reduced `langchain-core>=1.3.2,<2.0.0` to bare `langchain-core`). Locks
down the config so bumps preserve existing specifiers, and restores the
bounds it already mangled across the monorepo.

## Changes
- Add `versioning-strategy: increase` to every `uv` ecosystem block in
`.github/dependabot.yml` so future bumps move the lower bound in place
instead of rewriting the constraint.
- Ignore workspace-internal packages (`langchain-core`, `langchain`,
`langchain-classic`, `langchain-text-splitters`, `langchain-tests`,
`langchain-model-profiles`) on every `uv` block — these are editable
installs from local paths and their published constraints are
hand-curated for release, not Dependabot's to bump.
- Restore stripped bounds across all `libs/` packages — runtime
`dependencies` and every dep group (`test`, `dev`, `test_integration`,
`typing`, `lint`) — to `>=1.4.0,<2.0.0` for `langchain-core` and
`>=1.0.0,<2.0.0` for the other internal packages.
This commit is contained in:
Mason Daugherty
2026-05-18 15:24:19 -07:00
committed by GitHub
parent 2458a7912e
commit abd9d4ce31
24 changed files with 142 additions and 117 deletions

View File

@@ -23,7 +23,7 @@ classifiers = [
version = "1.2.2"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"langchain-core",
"langchain-core>=1.4.0,<2.0.0",
"tokenizers>=0.19.1,<1.0.0",
"huggingface-hub>=0.33.4,<2.0.0",
]
@@ -56,20 +56,20 @@ test = [
"scipy>=1.14.1,<2.0.0; python_version >= \"3.13\"",
"transformers>=5.0.0,<6.0.0",
"sentence-transformers>=5.2.0,<6.0.0",
"langchain-core",
"langchain-tests",
"langchain-core>=1.4.0,<2.0.0",
"langchain-tests>=1.0.0,<2.0.0",
"langchain-community",
"langchain",
"langchain>=1.0.0,<2.0.0",
]
lint = ["ruff>=0.13.1,<0.14.0"]
dev = [
"ipykernel>=6.29.2,<7.0.0",
"langchain-core"
"langchain-core>=1.4.0,<2.0.0"
]
test_integration = []
typing = [
"mypy>=1.10.0,<2.0.0",
"langchain-core"
"langchain-core>=1.4.0,<2.0.0"
]
[tool.uv]