forked from temporalio/samples-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
113 lines (92 loc) · 2.97 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
[tool.poetry]
name = "temporalio-samples"
version = "0.1a1"
description = "Temporal.io Python SDK samples"
license = "MIT"
authors = ["Temporal Technologies Inc <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/temporalio/samples-python"
repository = "https://github.com/temporalio/samples-python"
documentation = "https://docs.temporal.io/docs/python"
packages = [
{ include = "**/*.py", from = "." }
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/temporalio/samples-python/issues"
[tool.poetry.dependencies]
python = "^3.8"
temporalio = "^1.7.0"
[tool.poetry.dev-dependencies]
black = "^22.3.0"
isort = "^5.10.1"
mypy = "^0.981"
pytest = "^7.1.2"
pytest-asyncio = "^0.18.3"
frozenlist = "^1.4.0"
# All sample-specific dependencies are in optional groups below, named after the
# sample they apply to
[tool.poetry.group.bedrock]
optional = true
[tool.poetry.group.bedrock.dependencies]
boto3 = "^1.34.92"
[tool.poetry.group.dsl]
optional = true
dependencies = { pyyaml = "^6.0.1", types-pyyaml = "^6.0.12", dacite = "^1.8.1" }
[tool.poetry.group.encryption]
optional = true
dependencies = { cryptography = "^38.0.1", aiohttp = "^3.8.1" }
[tool.poetry.group.gevent]
optional = true
dependencies = { gevent = { version = "^23.9.1", python = ">=3.8" } }
[tool.poetry.group.langchain]
optional = true
[tool.poetry.group.langchain.dependencies]
langchain = {version = "^0.1.7", python = ">=3.8.1,<4.0"}
langchain-openai = {version = "^0.0.6", python = ">=3.8.1,<4.0"}
openai = "^1.4.0"
fastapi = "^0.105.0"
tqdm = "^4.62.0"
uvicorn = { version = "^0.24.0.post1", extras = ["standard"]}
[tool.poetry.group.open_telemetry]
optional = true
[tool.poetry.group.open_telemetry.dependencies]
temporalio = { version = "*", extras = ["opentelemetry"] }
opentelemetry-exporter-otlp-proto-grpc = "1.18.0"
[tool.poetry.group.pydantic]
optional = true
dependencies = { pydantic = "^1.10.4" }
[tool.poetry.group.sentry]
optional = true
dependencies = { sentry-sdk = "^1.11.0" }
[tool.poe.tasks]
format = [{cmd = "black ."}, {cmd = "isort ."}]
lint = [{cmd = "black --check ."}, {cmd = "isort --check-only ."}, {ref = "lint-types" }]
lint-types = "mypy --check-untyped-defs --namespace-packages ."
test = "pytest"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[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
[tool.poetry.group.cloud_export_to_parquet]
optional = true
[tool.poetry.group.cloud_export_to_parquet.dependencies]
pandas = {version = "^2.2.2",python = ">=3.9,<4.0"}
numpy = {version = "^1.26.0",python = ">=3.9,<3.13"}
pyarrow = "^16.0.0"
boto3 = "^1.34.89"