Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (138 loc) · 4.39 KB
/
Copy pathpyproject.toml
File metadata and controls
149 lines (138 loc) · 4.39 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[project]
name = "temporalio-samples"
version = "0.1a1"
description = "Temporal.io Python SDK samples"
authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }]
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
dependencies = ["temporalio>=1.32.0,<2", "protobuf>=5.29.6,<6"]
[project.urls]
Homepage = "https://github.com/temporalio/samples-python"
Repository = "https://github.com/temporalio/samples-python"
Documentation = "https://docs.temporal.io/docs/python"
"Bug Tracker" = "https://github.com/temporalio/samples-python/issues"
[dependency-groups]
dev = [
"ruff>=0.5.0,<0.6",
"mypy>=1.4.1,<2",
"pytest>=7.1.2,<8",
"pytest-asyncio>=0.18.3,<0.19",
"fakeredis>=2,<3",
"frozenlist>=1.4.0,<2",
"pyright>=1.1.394",
"types-pyyaml>=6.0.12.20241230,<7",
"pytest-pretty>=1.3.0",
"poethepoet>=0.36.0",
]
bedrock = ["boto3>=1.34.92,<2"]
deepagents = [
"temporalio[deepagents,langsmith]>=1.32.0 ; python_version >= '3.11'",
"langchain-anthropic>=1.4.7,<2 ; python_version >= '3.11'",
]
dsl = ["pyyaml>=6.0.1,<7", "types-pyyaml>=6.0.12,<7", "dacite>=1.8.1,<2"]
encryption = ["cryptography>=38.0.1,<39", "aiohttp>=3.13.3,<4"]
external-storage = [
"aioboto3>=15.1.0,<15.2",
"aiohttp>=3.13.3,<4",
"moto[server]>=4.0.0",
"types_aiobotocore_s3>=2.25.2",
]
external-storage-redis = ["redis>=5.0.0,<8"]
gevent = ["gevent>=25.4.2 ; python_version >= '3.8'"]
google-adk = [
"temporalio[google-adk,opentelemetry]>=1.32.0,<2",
"google-adk>=2.2.0,<3",
"opentelemetry-exporter-prometheus>=0.48b0",
"prometheus-client>=0.21",
]
google-genai = [
"mcp>=1.0.0",
"temporalio[google-genai,pydantic]>=1.32.0",
]
langfuse-tracing = [
"openai>=1.4.0",
"temporalio[opentelemetry]>=1.32.0,<2",
# Langfuse's OTLP endpoint is HTTP-only (no gRPC), so use the http exporter.
"opentelemetry-exporter-otlp-proto-http>=1.30.0,<2",
"openinference-instrumentation-openai>=0.1.52",
"opentelemetry-instrumentation-openai-v2>=2.1b0",
]
langsmith-tracing = [
"openai>=1.4.0",
"langsmith>=0.7.0",
"temporalio[pydantic,langsmith]>=1.32.0",
]
langgraph = [
"langgraph>=1.1.3",
"langchain>=0.3.0",
"langchain-anthropic>=0.3.0",
"temporalio[langgraph,langsmith]>=1.32.0",
]
litellm = ["litellm>=1.85.0,<2"]
nexus = ["nexus-rpc>=1.1.0,<2"]
open-telemetry = [
"temporalio[opentelemetry]",
"opentelemetry-exporter-otlp-proto-grpc",
]
openai-agents = [
"openai-agents[litellm] >= 0.14.1",
"temporalio-openai-agents >= 1.0.0",
"requests>=2.32.0,<3",
]
pydantic-converter = ["pydantic>=2.10.6,<3"]
sentry = ["sentry-sdk>=2.13.0"]
strands-agents = [
"strands-agents>=1.39.0",
"strands-agents-tools>=0.5.2",
"mcp>=1.0.0",
"boto3>=1.34.92,<2",
"temporalio[strands-agents,pydantic]>=1.32.0",
]
trio-async = ["trio>=0.28.0,<0.29", "trio-asyncio>=0.15.0,<0.16"]
cloud-export-to-parquet = [
"pandas>=2.3.3,<3 ; python_version >= '3.10' and python_version < '4.0'",
"numpy>=1.26.0,<2 ; python_version >= '3.10' and python_version < '3.13'",
"boto3>=1.34.89,<2",
"pyarrow>=19.0.1",
]
[tool.uv]
constraint-dependencies = [
# yarl 1.24.0 was published without an sdist and only has cp310 wheels, so it cannot
# install on the Python 3.14 CI jobs.
"yarl!=1.24.0",
]
[tool.setuptools.packages.find]
exclude = ["lambda_worker*"]
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[tool.poe.tasks]
format = [
{ cmd = "uv run scripts/run_root_tool.py ruff check --select I --fix" },
{ cmd = "uv run scripts/run_root_tool.py ruff format" },
]
lint = [
{ cmd = "uv run scripts/run_root_tool.py ruff check --select I" },
{ cmd = "uv run scripts/run_root_tool.py ruff format --check" },
{ ref = "lint-types" },
]
lint-types = "uv run --all-groups --no-group cloud-export-to-parquet scripts/run_root_tool.py mypy --check-untyped-defs --namespace-packages ."
test = "uv run --all-groups --no-group cloud-export-to-parquet pytest"
[tool.pytest.ini_options]
asyncio_mode = "auto"
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
testpaths = ["tests"]
[tool.ruff]
target-version = "py310"
[tool.mypy]
ignore_missing_imports = true
namespace_packages = true
[[tool.mypy.overrides]]
module = "aiohttp.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "opentelemetry.*"
ignore_errors = true