-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathpyproject.toml
148 lines (134 loc) · 3.54 KB
/
pyproject.toml
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
[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.9"
readme = "README.md"
license = "MIT"
dependencies = ["temporalio>=1.11.0,<2"]
[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 = [
"black>=22.3.0,<23",
"isort>=5.10.1,<6",
"mypy>=1.4.1,<2",
"pytest>=7.1.2,<8",
"pytest-asyncio>=0.18.3,<0.19",
"frozenlist>=1.4.0,<2",
"types-pyyaml>=6.0.12.20241230,<7",
]
bedrock = ["boto3>=1.34.92,<2"]
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.8.1,<4",
]
gevent = ["gevent>=23.9.1,<24 ; python_version >= '3.8'"]
langchain = [
"langchain>=0.1.7,<0.2 ; python_version >= '3.8.1' and python_version < '4.0'",
"langchain-openai>=0.0.6,<0.0.7 ; python_version >= '3.8.1' and python_version < '4.0'",
"openai>=1.4.0,<2",
"fastapi>=0.105.0,<0.106",
"tqdm>=4.62.0,<5",
"uvicorn[standard]>=0.24.0.post1,<0.25",
]
open-telemetry = [
"temporalio[opentelemetry]",
"opentelemetry-exporter-otlp-proto-grpc==1.18.0",
]
pydantic-converter = ["pydantic>=2.10.6,<3"]
sentry = ["sentry-sdk>=1.11.0,<2"]
trio-async = [
"trio>=0.28.0,<0.29",
"trio-asyncio>=0.15.0,<0.16",
]
cloud-export-to-parquet = [
"pandas>=2.2.2,<3 ; python_version >= '3.9' and python_version < '4.0'",
"numpy>=1.26.0,<2 ; python_version >= '3.9' and python_version < '3.13'",
"boto3>=1.34.89,<2",
"pyarrow>=19.0.1",
]
[tool.uv]
default-groups = [
"dev",
"bedrock",
"dsl",
"encryption",
"gevent",
"langchain",
"open-telemetry",
"pydantic-converter",
"sentry",
"trio-async",
]
[tool.hatch.build.targets.sdist]
include = ["./**/*.py"]
[tool.hatch.build.targets.wheel]
include = ["./**/*.py"]
packages = [
"activity_worker",
"bedrock",
"cloud_export_to_parquet",
"context_propagation",
"custom_converter",
"custom_decorator",
"custom_metric",
"dsl",
"encryption",
"gevent_async",
"hello",
"langchain",
"message_passing",
"open_telemetry",
"patching",
"polling",
"prometheus",
"pydantic_converter",
"pydantic_converter_v1",
"pyproject.toml",
"replay",
"schedules",
"sentry",
"sleep_for_days",
"tests",
"trio_async",
"updatable_timer",
"worker_specific_task_queues",
"worker_versioning",
]
[tool.hatch.build.targets.wheel.sources]
"./**/*.py" = "**/*.py"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.poe.tasks]
format = [{cmd = "uv run black ."}, {cmd = "uv run isort ."}]
lint = [{cmd = "uv run black --check ."}, {cmd = "uv run isort --check-only ."}, {ref = "lint-types" }]
lint-types = "uv run mypy --check-untyped-defs --namespace-packages ."
test = "uv run 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)"
[tool.isort]
profile = "black"
skip_gitignore = true
[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