mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-13 13:36:15 +00:00
161 lines
4.9 KiB
TOML
161 lines
4.9 KiB
TOML
[build-system]
|
|
requires = ["pdm-backend"]
|
|
build-backend = "pdm.backend"
|
|
|
|
[project]
|
|
authors = []
|
|
license = { text = "MIT" }
|
|
requires-python = "<4.0,>=3.9"
|
|
dependencies = [
|
|
"langchain-core<1.0.0,>=0.3.35",
|
|
"langchain-text-splitters<1.0.0,>=0.3.6",
|
|
"langsmith<0.4,>=0.1.17",
|
|
"pydantic<3.0.0,>=2.7.4",
|
|
"SQLAlchemy<3,>=1.4",
|
|
"requests<3,>=2",
|
|
"PyYAML>=5.3",
|
|
"aiohttp<4.0.0,>=3.8.3",
|
|
"tenacity!=8.4.0,<10,>=8.1.0",
|
|
"numpy<2,>=1.26.4; python_version < \"3.12\"",
|
|
"numpy<3,>=1.26.2; python_version >= \"3.12\"",
|
|
"async-timeout<5.0.0,>=4.0.0; python_version < \"3.11\"",
|
|
]
|
|
name = "langchain"
|
|
version = "0.3.19"
|
|
description = "Building applications with LLMs through composability"
|
|
readme = "README.md"
|
|
|
|
[project.optional-dependencies]
|
|
community = ["langchain-community"]
|
|
anthropic = ["langchain-anthropic"]
|
|
openai = ["langchain-openai"]
|
|
cohere = ["langchain-cohere"]
|
|
google-vertexai = ["langchain-google-vertexai"]
|
|
google-genai = ["langchain-google-genai"]
|
|
fireworks = ["langchain-fireworks"]
|
|
ollama = ["langchain-ollama"]
|
|
together = ["langchain-together"]
|
|
mistralai = ["langchain-mistralai"]
|
|
huggingface = ["langchain-huggingface"]
|
|
groq = ["langchain-groq"]
|
|
aws = ["langchain-aws"]
|
|
deepseek = ["langchain-deepseek"]
|
|
xai = ["langchain-xai"]
|
|
|
|
[project.urls]
|
|
"Source Code" = "https://github.com/langchain-ai/langchain/tree/master/libs/langchain"
|
|
"Release Notes" = "https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain%3D%3D0%22&expanded=true"
|
|
repository = "https://github.com/langchain-ai/langchain"
|
|
|
|
[project.scripts]
|
|
langchain-server = "langchain.server:main"
|
|
|
|
[dependency-groups]
|
|
test = [
|
|
"pytest<9,>=8",
|
|
"pytest-cov<5.0.0,>=4.0.0",
|
|
"pytest-dotenv<1.0.0,>=0.5.2",
|
|
"duckdb-engine<1.0.0,>=0.9.2",
|
|
"pytest-watcher<1.0.0,>=0.2.6",
|
|
"freezegun<2.0.0,>=1.2.2",
|
|
"responses<1.0.0,>=0.22.0",
|
|
"pytest-asyncio<1.0.0,>=0.23.2",
|
|
"lark<2.0.0,>=1.1.5",
|
|
"pandas<3.0.0,>=2.0.0",
|
|
"pytest-mock<4.0.0,>=3.10.0",
|
|
"pytest-socket<1.0.0,>=0.6.0",
|
|
"syrupy<5.0.0,>=4.0.2",
|
|
"requests-mock<2.0.0,>=1.11.0",
|
|
"pytest-xdist<4.0.0,>=3.6.1",
|
|
"blockbuster<1.6,>=1.5.18",
|
|
"cffi<1.17.1; python_version < \"3.10\"",
|
|
"cffi; python_version >= \"3.10\"",
|
|
"langchain-tests",
|
|
"langchain-core",
|
|
"langchain-text-splitters",
|
|
"langchain-openai",
|
|
"toml>=0.10.2",
|
|
"packaging>=24.2",
|
|
]
|
|
codespell = ["codespell<3.0.0,>=2.2.0"]
|
|
test_integration = [
|
|
"pytest-vcr<2.0.0,>=1.0.2",
|
|
"urllib3<2; python_version < \"3.10\"",
|
|
"wrapt<2.0.0,>=1.15.0",
|
|
"python-dotenv<2.0.0,>=1.0.0",
|
|
"cassio<1.0.0,>=0.1.0",
|
|
"langchainhub<1.0.0,>=0.1.16",
|
|
"langchain-core",
|
|
"langchain-text-splitters",
|
|
]
|
|
lint = [
|
|
"ruff<1.0.0,>=0.9.2",
|
|
"cffi<1.17.1; python_version < \"3.10\"",
|
|
"cffi; python_version >= \"3.10\"",
|
|
]
|
|
typing = [
|
|
"mypy<2.0,>=1.10",
|
|
"types-pyyaml<7.0.0.0,>=6.0.12.2",
|
|
"types-requests<3.0.0.0,>=2.28.11.5",
|
|
"types-toml<1.0.0.0,>=0.10.8.1",
|
|
"types-redis<5.0.0.0,>=4.3.21.6",
|
|
"types-pytz<2024.0.0.0,>=2023.3.0.0",
|
|
"types-chardet<6.0.0.0,>=5.0.4.6",
|
|
"mypy-protobuf<4.0.0,>=3.0.0",
|
|
"langchain-core",
|
|
"langchain-text-splitters",
|
|
]
|
|
dev = [
|
|
"jupyter<2.0.0,>=1.0.0",
|
|
"playwright<2.0.0,>=1.28.0",
|
|
"setuptools<68.0.0,>=67.6.1",
|
|
"langchain-core",
|
|
"langchain-text-splitters",
|
|
]
|
|
|
|
|
|
[tool.uv.sources]
|
|
langchain-core = { path = "../core", editable = true }
|
|
langchain-tests = { path = "../standard-tests", editable = true }
|
|
langchain-text-splitters = { path = "../text-splitters", editable = true }
|
|
langchain-openai = { path = "../partners/openai", editable = true }
|
|
|
|
[tool.ruff]
|
|
target-version = "py39"
|
|
exclude = ["tests/integration_tests/examples/non-utf8-encoding.py"]
|
|
|
|
[tool.mypy]
|
|
ignore_missing_imports = "True"
|
|
disallow_untyped_defs = "True"
|
|
exclude = ["notebooks", "examples", "example_data"]
|
|
|
|
[tool.codespell]
|
|
skip = ".git,*.pdf,*.svg,*.pdf,*.yaml,*.ipynb,poetry.lock,*.min.js,*.css,package-lock.json,example_data,_dist,examples,*.trig"
|
|
ignore-regex = ".*(Stati Uniti|Tense=Pres).*"
|
|
ignore-words-list = "momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogyny,unsecure,damon,crate,aadd,symbl,precesses,accademia,nin"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "T201", "D"]
|
|
pydocstyle = { convention = "google" }
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*" = ["D"]
|
|
"!langchain/indexes/vectorstore.py" = ["D"]
|
|
|
|
[tool.coverage.run]
|
|
omit = ["tests/*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--strict-markers --strict-config --durations=5 --snapshot-warn-unused -vv"
|
|
markers = [
|
|
"requires: mark tests as requiring a specific library",
|
|
"scheduled: mark tests to run in scheduled testing",
|
|
"compile: mark placeholder test used to compile integration tests without running them",
|
|
]
|
|
asyncio_mode = "auto"
|
|
filterwarnings = [
|
|
"ignore::langchain_core._api.beta_decorator.LangChainBetaWarning",
|
|
"ignore::langchain_core._api.deprecation.LangChainDeprecationWarning:tests",
|
|
"ignore::langchain_core._api.deprecation.LangChainPendingDeprecationWarning:tests",
|
|
]
|