-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (127 loc) · 3.49 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (127 loc) · 3.49 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "posthog"
version = "7.21.0"
description = "Integrate PostHog into any python application."
authors = [{ name = "PostHog", email = "engineering@posthog.com" }]
maintainers = [{ name = "PostHog", email = "engineering@posthog.com" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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",
]
dependencies = [
"requests>=2.7,<3.0",
"backoff>=1.10.0",
"distro>=1.5.0",
"typing-extensions>=4.2.0",
]
[project.urls]
Homepage = "https://github.com/posthog/posthog-python"
Repository = "https://github.com/posthog/posthog-python"
[project.optional-dependencies]
langchain = ["langchain>=0.2.0"]
# Note: the MCP SDK (`mcp`) is intentionally NOT an extra. It's a peer dependency of
# `instrument()` — anyone wrapping a FastMCP/Server already has it — so it's imported
# lazily and version-checked at runtime, not installed by posthog. `PostHogMCP` (custom
# dispatchers) needs nothing beyond posthog.
otel = [
"opentelemetry-sdk>=1.20.0",
"opentelemetry-exporter-otlp-proto-http>=1.20.0",
]
dev = [
"django-stubs",
"griffe",
"lxml",
"mypy",
"mypy-baseline",
"types-requests",
"types-setuptools",
"pre-commit",
"pydantic>=2.12.0",
"ruff",
"setuptools",
"packaging",
"wheel",
"twine",
"tomli",
"tomli_w",
]
test = [
"freezegun==1.5.1",
"python-dateutil>=2.9.0.post0",
"tzdata",
"coverage",
"pytest",
"pytest-timeout",
"pytest-asyncio",
"django>=5.2.8,<6.0",
"openai>=2.0",
"anthropic>=0.72",
"langgraph>=1.0",
"langgraph-checkpoint>=3.0.1",
"tiktoken>=0.12.0",
"langchain-core>=1.0",
"langchain-community>=0.4",
"langchain-openai>=1.0",
"langchain-anthropic>=1.0",
"google-genai",
"pydantic>=2.12.0",
"parameterized>=0.8.1",
"claude-agent-sdk",
"mcp>=1.26.0",
"fastmcp>=2.0",
"opentelemetry-sdk>=1.20.0",
"opentelemetry-exporter-otlp-proto-http>=1.20.0",
"pytest-bdd>=8.1.0",
]
[tool.setuptools]
packages = [
"posthog",
"posthog.ai",
"posthog.ai.langchain",
"posthog.ai.openai",
"posthog.ai.openai_agents",
"posthog.ai.anthropic",
"posthog.ai.gemini",
"posthog.ai.claude_agent_sdk",
"posthog.ai.otel",
"posthog.mcp",
"posthog.test",
"posthog.test.ai",
"posthog.test.ai.openai_agents",
"posthog.test.ai.claude_agent_sdk",
"posthog.test.ai.otel",
"posthog.test.mcp",
"posthog.integrations",
]
[tool.uv]
exclude-newer = "7 days"
required-version = ">=0.8.0"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["posthog/test"]
norecursedirs = ["integration_tests"]
[tool.mutmut]
paths_to_mutate = ["posthog/utils.py"]
do_not_mutate = ["posthog/test/*"]
tests_dir = ["posthog/test/test_utils.py", "posthog/test/test_size_limited_dict.py"]
also_copy = ["posthog"]
pytest_add_cli_args = ["--timeout=30"]
[dependency-groups]
dev = [
"claude-agent-sdk>=0.1.50",
]