Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (113 loc) · 2.83 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (113 loc) · 2.83 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
[project]
name = "prometheus_client"
version = "0.26.0"
description = "Python client for the Prometheus monitoring system."
readme = "README.md"
license = "Apache-2.0 AND BSD-2-Clause"
license-files = [
"LICENSE",
"NOTICE",
]
requires-python = ">=3.9"
authors = [
{ name = "The Prometheus Authors", email = "prometheus-developers@googlegroups.com" },
]
keywords = [
"prometheus",
"monitoring",
"instrumentation",
"client",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Monitoring",
]
dependencies = [
"pydantic>=2.13.5",
"twisted>=25.5.0",
]
[project.optional-dependencies]
twisted = [
"twisted",
]
aiohttp = [
"aiohttp",
]
django = [
"django",
]
[project.urls]
Homepage = "https://github.com/prometheus/client_python"
Documentation = "https://prometheus.github.io/client_python/"
[tool.setuptools.package-data]
prometheus_client = ['py.typed']
[dependency-groups]
dev = [
"aiohttp>=3.13.5",
"django>=4.2.30",
"httpx2>=2.0.0",
"pytest>=8.4.2",
"pytest-aio>=1.9.0",
"pytest-cov>=7.1.0",
"pytest-django>=4.11.1",
"pytest-playwright>=0.7.1",
"pytest-reportlog>=0.4.0",
"pytest-timeout>=2.4.0",
"ruff>=0.17.0",
]
[tool.pyright]
typeCheckingMode = "basic"
reportMissingImports = true
reportUntypedBaseClass = true
[tool.pytest]
testpaths = ["tests"]
timeout="5000"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"api: marks tests as api tests",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.pytest_env]
env_files = [".env", ".env.test"]
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
# [build-system]
# requires = ["setuptools>=77.0.0"]
# build-backend = "setuptools.build_meta"
# For UV
[build-system]
requires = ["uv_build>=0.9,<0.10"]
build-backend = "uv_build"
[tool.coverage.run]
omit = [
"manage.py",
"*/migrations/*",
"*/__init__.py",
"*/typings.py",
"*/tests/"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]