-
Notifications
You must be signed in to change notification settings - Fork 264
/
Copy pathpyproject.toml
190 lines (176 loc) · 6.17 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "agentops"
version = "0.3.25"
authors = [
{ name="Alex Reibman", email="areibman@gmail.com" },
{ name="Shawn Qiu", email="siyangqiu@gmail.com" },
{ name="Braelyn Boynton", email="bboynton97@gmail.com" },
{ name="Howard Gil", email="howardbgil@gmail.com" },
{ name="Constantin Teodorescu", email="teocns@gmail.com" },
{ name="Pratyush Shukla", email="ps4534@nyu.edu" }
]
description = "Observability and DevTool Platform for AI Agents"
readme = "README.md"
requires-python = ">=3.9,<3.14"
classifiers = [
"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",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"requests>=2.0.0,<3.0.0",
"psutil>=5.9.8,<6.1.0",
"termcolor>=2.3.0,<2.5.0",
"PyYAML>=5.3,<7.0",
"packaging>=21.0,<25.0", # Lower bound of 21.0 ensures compatibility with Python 3.9+
"opentelemetry-api==1.22.0; python_version<'3.10'",
"opentelemetry-api>=1.27.0; python_version>='3.10'",
"opentelemetry-sdk==1.22.0; python_version<'3.10'",
"opentelemetry-sdk>=1.27.0; python_version>='3.10'",
"opentelemetry-exporter-otlp-proto-http==1.22.0; python_version<'3.10'",
"opentelemetry-exporter-otlp-proto-http>=1.27.0; python_version>='3.10'",
]
[dependency-groups]
test = [
"openai>=1.0.0",
"anthropic",
"cohere",
"litellm",
"ai21>=3.0.0",
"groq",
"ollama",
"mistralai",
"google-generativeai>=0.1.0",
# ;;
# The below is a really hard dependency, that can be installed only between python >=3.10,<3.13.
# CI will fail because all tests will automatically pull this dependency group;
# we need a separate group specifically for integration tests which will run on pinned 3.1x
# ------------------------------------------------------------------------------------------------------------------------------------
# "crewai-tools @ git+https://github.com/crewAIInc/crewAI-tools.git@a14091abb24527c97ccfcc8539d529c8b4559a0f; python_version>='3.10'",
# ------------------------------------------------------------------------------------------------------------------------------------
# ;;
"autogen<0.4.0",
"pytest-cov",
"fastapi[standard]",
]
dev = [
# Testing essentials
"pytest>=8.0.0", # Testing framework with good async support
"pytest-depends", # For testing complex agent workflows
"pytest-asyncio", # Async test support for testing concurrent agent operations
"pytest-mock", # Mocking capabilities for isolating agent components
"pyfakefs", # File system testing
"pytest-recording", # Alternative to pytest-vcr with better Python 3.x support
# TODO: Use release version after vcrpy is released with this fix.
"vcrpy @ git+https://github.com/kevin1024/vcrpy.git@5f1b20c4ca4a18c1fc8cfe049d7df12ca0659c9b",
# Code quality and type checking
"ruff", # Fast Python linter for maintaining code quality
"mypy", # Static type checking for better reliability
"types-requests", # Type stubs for requests library
# HTTP mocking and environment
"requests_mock>=1.11.0", # Mock HTTP requests for testing agent external communications
"python-dotenv", # Environment management for secure testing
# Agent integration testing
"pytest-sugar>=1.0.0",
"pdbpp>=0.10.3",
]
[project.urls]
Homepage = "https://github.com/AgentOps-AI/agentops"
Issues = "https://github.com/AgentOps-AI/agentops/issues"
[tool.uv]
compile-bytecode = true # Enable bytecode compilation for better performance
default-groups = ["test", "dev"] # Default groups to install for development
constraint-dependencies = [
"pydantic>=2.8.0; python_version>='3.13'", # Ensure Python 3.13 compatibility
"typing-extensions; python_version>='3.13'", # Required for Pydantic with Python 3.13
# For Python 3.9, use original OpenTelemetry versions
"opentelemetry-api==1.22.0; python_version<'3.10'",
"opentelemetry-sdk==1.22.0; python_version<'3.10'",
"opentelemetry-exporter-otlp-proto-http==1.22.0; python_version<'3.10'",
# For Python ≥3.10 (where autogen-core might be present), use newer versions
"opentelemetry-api>=1.27.0; python_version>='3.10'",
"opentelemetry-sdk>=1.27.0; python_version>='3.10'",
"opentelemetry-exporter-otlp-proto-http>=1.27.0; python_version>='3.10'",
]
[tool.autopep8]
max_line_length = 120
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "module" # WARNING: Changing this may break tests. A `module`-scoped session might be faster, but also unstable.
testpaths = ["tests/unit"] # Default to unit tests
addopts = "--tb=short -p no:warnings --import-mode=importlib --ignore=tests/integration" # Ignore integration by default
pythonpath = ["."]
faulthandler_timeout = 30 # Reduced from 60
timeout = 60 # Reduced from 300
disable_socket = true # Add this to prevent hanging on socket cleanup
[tool.ruff]
line-length = 120
[tool.ruff.lint]
ignore = [
"F401", # Unused imports
"E712", # Comparison to True/False
"E711", # Comparison to None
"E722", # Bare except
"F821", # Undefined names
"F841", # Unused variables
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".github",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".vscode",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"docs",
"examples",
"node_modules",
"site-packages",
"venv",
"tests/core_manual_tests",
]
[tool.hatch.build.targets.wheel]
packages = ["agentops"]
[tool.hatch.build]
exclude = [
"docs/*",
"examples/*",
"tests/*",
".github/*",
"*.gif",
"*.png",
"dist/*",
"build/*",
".pytest_cache",
".ruff_cache",
"__pycache__",
"*.pyc"
]
[tool.hatch.metadata]
allow-direct-references = true