Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (123 loc) · 3.93 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (123 loc) · 3.93 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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# For more information on pyproject.toml, see https://peps.python.org/pep-0621/
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "durabletask"
version = "1.13.1"
description = "A Durable Task Client SDK for Python"
keywords = [
"durable",
"task",
"workflow"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"License :: OSI Approved :: MIT License",
]
requires-python = ">=3.11"
license = {file = "LICENSE"}
readme = "README.md"
dependencies = [
"grpcio",
"protobuf",
"packaging"
]
[project.optional-dependencies]
opentelemetry = [
"opentelemetry-api>=1.0.0",
"opentelemetry-sdk>=1.0.0"
]
azure-blob-payloads = [
"azure-storage-blob[aio]>=12.0.0"
]
history-export-azure = [
"azure-storage-blob[aio]>=12.0.0"
]
[project.urls]
repository = "https://github.com/microsoft/durabletask-python"
changelog = "https://github.com/microsoft/durabletask-python/blob/main/CHANGELOG.md"
# Development tools only: runtime dependencies belong in each package's metadata.
[dependency-groups]
test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
]
lint = [
"autopep8",
"flake8",
"pymarkdownlnt",
"ruff",
]
typecheck = [
"pyright",
]
build = [
"build",
]
protobuf = [
"grpcio-tools",
]
nox = [
"nox>=2025.2.9",
]
examples = [
"pydantic>=2",
"opentelemetry-exporter-otlp-proto-grpc",
]
functions-e2e = [
{include-group = "test"},
"opentelemetry-exporter-otlp-proto-grpc",
]
dev = [
{include-group = "test"},
{include-group = "lint"},
{include-group = "typecheck"},
{include-group = "build"},
{include-group = "protobuf"},
{include-group = "nox"},
{include-group = "examples"},
]
[tool.setuptools.packages.find]
include = ["durabletask", "durabletask.*"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
# Activity triggers can lack a destination type, and even typed loose-mode
# decoding uses the object hook for legacy custom objects. Report only
# these exact upstream advisories without failing; see issue #325.
'default:^azure\.functions df_loads was called without expected_type\. Pass the destination type to enable validation and prepare for strict typing \(AZURE_FUNCTIONS_DURABLE_STRICT_TYPING=1\)\. This message will not be repeated\.\Z:DeprecationWarning:azure\.functions\._durable_functions\Z',
'default:^azure\.functions Durable JSON codec reconstructed a custom object via the loose-mode object_hook path\. Set AZURE_FUNCTIONS_DURABLE_STRICT_TYPING=1 and supply expected_type at decode call sites to enable type-validated deserialization\. This message will not be repeated\.\Z:DeprecationWarning:azure\.functions\._durable_functions\Z',
]
markers = [
"azurite: tests that require Azurite (local Azure Storage emulator)",
"functions_e2e: end-to-end tests that require the Azure Functions Core Tools (func) and Azurite",
]
[tool.ruff]
target-version = "py311"
extend-exclude = ["*_pb2.py", "*_pb2_grpc.py", "*_pb2.pyi", "*_pb2_grpc.pyi", ".python_packages"]
force-exclude = true
[tool.ruff.per-file-target-version]
"azure-functions-durable/**/*.py" = "py313"
"tests/azure-functions-durable/**/*.py" = "py313"
[tool.ruff.lint]
select = ["UP"]
ignore = [
# Typing migration requires runtime annotation compatibility review:
# https://github.com/microsoft/durabletask-python/issues/322
"UP006", "UP007", "UP035", "UP037", "UP040", "UP043", "UP045", "UP047",
]