-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (120 loc) · 3.42 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (120 loc) · 3.42 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
[project]
name = "grpc-client-kit"
dynamic = ["version"]
description = "Batteries-optional async gRPC client toolkit (channel pool, load balancing, health checking, streaming-aware interceptors, observability)"
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
authors = [{ name = "Alex Shalaev", email = "shalaevad.alexey@gmail.com" }]
keywords = ["grpc", "grpcio", "async", "asyncio", "client", "load-balancing", "microservices", "observability"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"grpcio>=1.78.0,<2.0.0",
]
[project.urls]
Repository = "https://github.com/bedrock-python/grpc-client-kit"
Documentation = "https://bedrock-python.github.io/grpc-client-kit/"
Changelog = "https://github.com/bedrock-python/grpc-client-kit/blob/master/CHANGELOG.md"
"Bug Tracker" = "https://github.com/bedrock-python/grpc-client-kit/issues"
[project.optional-dependencies]
health = [
"grpcio-health-checking>=1.78.0,<2.0.0",
]
tracing = [
"opentelemetry-api>=1.30.0,<2.0.0",
]
metrics = [
"prometheus-client>=0.20.0,<1.0.0",
]
deadline = [
"deadline-budget>=0.1.0,<1.0.0",
]
observability = [
"grpc-client-kit[metrics,tracing]",
]
all = [
"grpc-client-kit[deadline,health,metrics,tracing]",
]
[dependency-groups]
test = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-lazy-fixtures>=1.1.1",
"freezegun>=1.5.5",
]
docs = [
"zensical>=0.0.37",
"mkdocstrings-python>=2.0.3",
]
dev = [
"ruff>=0.15.1",
"mypy>=1.19.1",
"pre-commit>=4.5.1",
{ include-group = "test" },
]
[tool.uv]
link-mode = "copy"
[tool.hatch.version]
path = "grpc_client_kit/__version__.py"
[tool.hatch.build.targets.wheel]
packages = ["grpc_client_kit"]
[tool.hatch.build.targets.sdist]
include = ["/grpc_client_kit", "/README.md", "/LICENSE", "/CHANGELOG.md"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.mypy]
python_version = "3.12"
files = ["grpc_client_kit"]
mypy_path = ["."]
check_untyped_defs = true
disallow_untyped_defs = true
implicit_reexport = false
ignore_missing_imports = true
show_error_codes = true
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unreachable = true
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["F", "E", "W", "I", "B", "N", "S", "C4", "DTZ", "SIM", "TRY", "PERF", "RUF", "UP", "ANN", "T20", "PTH", "PLC", "PLE", "PLW"]
ignore = ["TRY003", "S101", "ANN401", "RUF012", "S104", "S105", "S106", "ANN204", "DTZ", "ANN", "N802", "PERF401", "SIM105", "S607"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
pythonpath = ["."]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"unit: mark a test as a unit test.",
"integration: mark a test as an integration test.",
]
[tool.coverage.run]
source = ["grpc_client_kit"]
omit = [
"tests/*",
"*/test_*.py",
]