Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (74 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (74 loc) · 2.55 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
[project]
name = "spantruth"
dynamic = ["version"]
description = "Checks the values LLM instrumentation libraries report against what the provider actually sent."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Plexito UG (haftungsbeschränkt)", email = "info@plexito.de" }]
requires-python = ">=3.11"
dependencies = [
"opentelemetry-proto>=1.30",
"protobuf>=5",
]
keywords = ["opentelemetry", "llm", "observability", "genai", "semantic-conventions", "conformance", "tracing"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Testing",
"Topic :: System :: Monitoring",
]
[project.urls]
Homepage = "https://github.com/Plexito-de/spantruth"
Issues = "https://github.com/Plexito-de/spantruth/issues"
Report = "https://plexito-de.github.io/spantruth/"
[project.scripts]
spantruth = "spantruth.cli:main"
[dependency-groups]
test = [
"pytest>=9",
"pytest-timeout>=2.4",
# The fixtures are checked with the SDK types, so test with the SDKs the subjects run.
"openai>=3.42.1",
"anthropic>=2.4.0",
"opentelemetry-sdk>=1.45.2",
"opentelemetry-exporter-otlp-proto-http>=1.45.2",
"pyyaml>=6",
]
lint = ["ruff>=0.17"]
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/spantruth/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/spantruth"]
# The subjects, the known issues and the prices live at the repository root, where contributors
# find them. The wheel carries them, so an installed spantruth runs without a clone.
[tool.hatch.build.targets.wheel.force-include]
"subjects" = "spantruth/subjects"
"known_issues.toml" = "spantruth/known_issues.toml"
"prices.toml" = "spantruth/prices.toml"
[tool.uv]
default-groups = ["test", "lint"]
[tool.ruff]
line-length = 100
# A measurement keeps the scripts that ran, as they ran.
extend-exclude = ["results"]
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF"]
[tool.pytest.ini_options]
testpaths = ["tests"]
timeout = 120
markers = [
"slow: builds a subject virtual environment or runs a subprocess (more than 1 s)",
"external: downloads packages from PyPI",
]
addopts = "-ra"