forked from Arize-ai/openinference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
91 lines (79 loc) · 1.99 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "openinference-instrumentation-openai"
dynamic = ["version"]
description = "OpenInference OpenAI Instrumentation"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.8, <3.13"
authors = [
{ name = "OpenInference Authors", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"opentelemetry-api",
"opentelemetry-instrumentation",
"opentelemetry-semantic-conventions",
"openinference-instrumentation>=0.1.7",
"openinference-semantic-conventions",
"typing-extensions",
"wrapt",
]
[project.optional-dependencies]
instruments = [
"openai >= 1.0.0",
]
test = [
"openai == 1.0.0",
"opentelemetry-sdk",
"opentelemetry-instrumentation-httpx",
"respx",
"numpy",
]
[project.urls]
Homepage = "https://github.com/Arize-ai/openinference/tree/main/python/instrumentation/openinference-instrumentation-openai"
[tool.hatch.version]
path = "src/openinference/instrumentation/openai/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["src/openinference"]
[tool.mypy]
strict = true
explicit_package_bases = true
exclude = [
"examples",
"dist",
"sdist",
]
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"wrapt",
]
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["E402", "E501"]
[tool.ruff.lint]
ignore-init-module-imports = true
select = ["E", "F", "W", "I"]
[tool.ruff.lint.isort]
force-single-line = false