-
Notifications
You must be signed in to change notification settings - Fork 139
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (132 loc) · 3.67 KB
/
pyproject.toml
File metadata and controls
148 lines (132 loc) · 3.67 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
[project]
name = "dapr"
dynamic = ["version"]
description = "The official release of Dapr Python SDK."
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache-2.0"}
authors = [{name = "Dapr Authors", email = "dapr@dapr.io"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
]
dependencies = [
"protobuf>=4.22.5,<8.0.0",
"grpcio>=1.37.0,<2.0.0",
"grpcio-status>=1.37.0,<2.0.0",
"aiohttp>=3.9.5,<4.0.0",
"python-dateutil>=2.8.1,<3.0.0",
"typing-extensions>=4.4.0,<5.0.0",
]
[project.urls]
Documentation = "https://github.com/dapr/docs"
Source = "https://github.com/dapr/python-sdk"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
namespaces = true
include = ["dapr", "dapr.*"]
exclude = ["tests*", "ext*", "examples*"]
[tool.setuptools.package-data]
"dapr" = ["py.typed"]
[tool.setuptools.dynamic]
version = {attr = "dapr.version.version.__version__"}
[tool.uv.workspace]
members = [
"ext/dapr-ext-workflow",
"ext/dapr-ext-grpc",
"ext/dapr-ext-fastapi",
"ext/dapr-ext-langgraph",
"ext/dapr-ext-strands",
"ext/flask_dapr",
]
[dependency-groups]
dev = [
"mypy==1.20.2",
"mypy-extensions~=1.1.0",
"mypy-protobuf==5.0.0",
"grpcio-tools==1.76.0",
"types-python-dateutil~=2.9.0",
"types-grpcio-status~=1.0.0",
"coverage~=7.13.4",
"wheel~=0.46.3",
"opentelemetry-sdk>=1.40,<1.42",
"opentelemetry-instrumentation-grpc~=0.61b0",
"opentelemetry-exporter-zipkin~=1.11.1",
"httpx~=0.28.1",
"pyOpenSSL~=26.0.0",
"cryptography>=42.0.0",
"redis>=7.4.0",
"Flask~=3.1.3",
"pytest~=9.0.2",
"pytest-asyncio>=0.23",
"ruff==0.14.1",
"python-dotenv~=1.2.2",
"pydantic~=2.13.3",
"PyYAML~=6.0.3",
]
tests = [
{include-group = "dev"},
"mechanical-markdown~=0.8.0",
"langchain-ollama>=1.0.1,<1.2.0",
]
[tool.ruff]
target-version = "py310"
line-length = 100
fix = true
extend-exclude = [".github", "dapr/proto", "ext/dapr-ext-workflow/dapr/ext/workflow/_durabletask/internal/*_pb2*"]
[tool.ruff.lint]
select = [
"I", # isort
"W", # pycodestyle warnings
"F", # pyflakes
"E", # pycodestyle errors
# TODO: Add those back progressively as we fix the issues
# "C", # flake8-comprehensions
# "B", # flake8-bugbear
# "UP", # pyupgrade
]
# TODO: Add those back progressively as we fix the issues
ignore = ["E501", "E203", "E712", "E722", "E713"]
[tool.ruff.format]
quote-style = 'single'
[tool.mypy]
python_version = "3.10"
install_types = true
non_interactive = true
warn_unused_configs = true
warn_redundant_casts = true
show_error_codes = true
check_untyped_defs = true
files = [
"dapr/actor/**/*.py",
"dapr/aio/**/*.py",
"dapr/clients/**/*.py",
"dapr/conf/**/*.py",
"dapr/serializers/**/*.py",
"ext/dapr-ext-grpc/dapr/**/*.py",
"ext/dapr-ext-fastapi/dapr/**/*.py",
"ext/flask_dapr/flask_dapr/*.py",
"examples/demo_actor/**/*.py",
]
[[tool.mypy.overrides]]
module = ["dapr.proto.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = ["grpc.aio"]
ignore_missing_imports = true
[tool.pytest.ini_options]
markers = [
'example_dir(name): set the example directory for the dapr fixture',
]
pythonpath = ["."]
asyncio_mode = "auto"