-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (88 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
105 lines (88 loc) · 2.46 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
[build-system]
requires = ["setuptools>=82.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "opendecree"
version = "0.3.0a1"
description = "Python SDK for OpenDecree — schema-driven configuration management (alpha)"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.11"
authors = [
{ name = "Zeev Dreifuss" },
]
keywords = ["config", "configuration", "decree", "grpc", "schema", "management"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"grpcio>=1.80.0,<2",
"protobuf>=6.31.0,<7",
"googleapis-common-protos>=1.75.0,<2",
]
[project.optional-dependencies]
otel = [
"opentelemetry-instrumentation-grpc>=0.50b0",
]
dev = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-asyncio>=1.3.0",
"mypy>=2.1.0",
"mypy-protobuf>=5.1.0",
"ruff>=0.15.14",
"grpcio-tools>=1.80.0",
"pdoc>=16.0.0",
]
[project.urls]
Homepage = "https://github.com/opendecree/decree-python"
Documentation = "https://github.com/opendecree/decree"
Repository = "https://github.com/opendecree/decree-python"
Issues = "https://github.com/opendecree/decree-python/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
opendecree = ["py.typed", "_generated/**/*.pyi"]
[tool.ruff]
target-version = "py311"
line-length = 100
exclude = ["src/opendecree/_generated"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "RUF"]
[tool.ruff.lint.per-file-ignores]
"src/opendecree/_generated/**" = ["ALL"]
"src/opendecree/__init__.py" = ["E402"]
"tests/**" = ["S101"]
[tool.mypy]
python_version = "3.11"
strict = true
[[tool.mypy.overrides]]
module = "opendecree._generated.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "grpc.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "google.rpc.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "opentelemetry.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"integration: live server required — set DECREE_TEST_ADDR to run",
]
[tool.coverage.run]
source = ["opendecree"]
omit = ["src/opendecree/_generated/*"]
[tool.coverage.report]
fail_under = 95
[tool.opendecree]
supported_server_version = ">=0.3.0,<1.0.0"