Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (100 loc) · 3.57 KB
/
Copy pathpyproject.toml
File metadata and controls
114 lines (100 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "temporalio-langgraph"
version = "0.0.0" # Development placeholder; protected release tags inject the published version in CI.
description = "Temporal integration for langgraph"
authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }]
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"] # committed copy of the repository's root LICENSE
classifiers = [
"Development Status :: 4 - Beta", # maturity; must agree with plugin.toml (see AGENTS.md for the mapping)
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = [
"temporalio>=1.34.0,<2",
"langgraph>=1.2.0",
"langchain-core>=0.3.0",
"typing-extensions>=4.2.0,<5",
]
[project.optional-dependencies]
[project.urls]
Homepage = "https://github.com/temporalio/ai-integrations/tree/main/python/langgraph"
Repository = "https://github.com/temporalio/ai-integrations"
Documentation = "https://docs.temporal.io/develop/python/integrations/langgraph"
[build-system]
requires = ["uv_build>=0.12.5,<0.13"]
build-backend = "uv_build"
[tool.uv.build-backend]
# src/temporalio must NOT contain __init__.py: the SDK wheel owns that package.
module-name = "temporalio.langgraph"
[dependency-groups]
dev = [
"pyright==1.1.403",
"basedpyright==1.34.0",
"mypy==1.18.2",
"ruff>=0.15.12,<0.16",
"pydocstyle>=6.3,<7",
"pytest~=9.0",
"pytest-asyncio>=0.21.2,<0.22",
"pytest-timeout~=2.2",
"pytest-xdist>=3.6,<4",
"pytest-pretty>=1.3",
"pytest-rerunfailures>=16.1",
"tomli>=2.0; python_version < '3.11'",
]
[tool.uv]
default-groups = ["dev"]
required-version = ">=0.12.5,<0.13" # same value in scripts/pyproject.toml; CI reads it via setup-uv version-file
exclude-newer = "2 weeks" # org supply-chain cooldown for third-party packages
exclude-newer-package = { temporalio = false } # the SDK is exempt: cutover releases must be adoptable on day one
link-mode = "copy"
cache-keys = [{ file = "pyproject.toml" }, { file = "README.md" }, { file = "src/**/*" }]
[tool.pytest.ini_options]
asyncio_mode = "auto"
# Do not use log_cli since this shows logging for all tests, not just the ones
# that failed. Instead, show all logs for failed tests at the end.
log_level = "DEBUG"
log_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
testpaths = ["tests"]
timeout = 60
timeout_func_only = true
filterwarnings = [
"error::temporalio.workflow.UnfinishedUpdateHandlersWarning",
"error::temporalio.workflow.UnfinishedSignalHandlersWarning",
"ignore::pytest.PytestDeprecationWarning",
"ignore::DeprecationWarning",
]
[tool.mypy]
files = ["src", "tests"]
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
check_untyped_defs = true
ignore_missing_imports = true
[tool.pyright]
extends = "../_shared/pyrightconfig.json"
include = ["src", "tests"]
# Resolve the plugin's own modules from source rather than from site-packages.
[[tool.pyright.executionEnvironments]]
root = "."
extraPaths = ["src"]
[tool.pydocstyle]
convention = "google"
add_ignore = [
# We like to wrap at a certain number of chars, even long summary sentences.
# https://github.com/PyCQA/pydocstyle/issues/184
"D205",
"D415",
]
[tool.ruff]
extend = "../_shared/ruff.toml"
src = [".", "src"]
[tool.ruff.lint.isort]
# The framework shares a name with the plugin folder; it remains a third-party import.
known-third-party = ["langgraph"]