forked from AgentOps-AI/agentops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
193 lines (177 loc) · 6.26 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
190
191
192
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "agentops"
version = "0.4.6"
authors = [
{ name="Alex Reibman", email="[email protected]" },
{ name="Shawn Qiu", email="[email protected]" },
{ name="Braelyn Boynton", email="[email protected]" },
{ name="Howard Gil", email="[email protected]" },
{ name="Constantin Teodorescu", email="[email protected]" },
{ name="Pratyush Shukla", email="[email protected]" },
{ name="Travis Dent", email="[email protected]" },
{ name="Dwij Patel", email="[email protected]" }
]
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-sdk==1.29.0; python_version<'3.10'",
"opentelemetry-sdk>1.29.0; python_version>='3.10'",
"opentelemetry-api==1.29.0; python_version<'3.10'",
"opentelemetry-api>1.29.0; python_version>='3.10'",
"opentelemetry-exporter-otlp-proto-http==1.29.0; python_version<'3.10'",
"opentelemetry-exporter-otlp-proto-http>1.29.0; python_version>='3.10'",
# "opentelemetry-exporter-otlp-proto-grpc==1.22.0; python_version<'3.10'",
# "opentelemetry-exporter-otlp-proto-grpc>=1.27.0; python_version>='3.10'",
"ordered-set>=4.0.0,<5.0.0",
"wrapt>=1.0.0,<2.0.0",
# "opentelemetry-instrumentation",
"opentelemetry-instrumentation==0.50b0; python_version<'3.10'",
"opentelemetry-instrumentation>0.50b0; python_version>='3.10'",
"opentelemetry-semantic-conventions==0.50b0; python_version<'3.10'",
"opentelemetry-semantic-conventions>0.50b0; python_version>='3.10'",
]
[dependency-groups]
test = [
"openai>=1.60.0",
"anthropic",
# ;;
# 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'",
# ------------------------------------------------------------------------------------------------------------------------------------
# ;;
"pytest-cov",
"fastapi[standard]",
"openai-agents[voice]",
]
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
"vcrpy>=0.7.0",
# 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",
"ipython>=8.18.1",
]
[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
resolution = "highest"
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
]
[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
log_cli = true # Enable logging to console
log_cli_level = "DEBUG" # Set log level to INFO
[tool.ruff]
line-length = 120
[tool.ruff.lint]
ignore = [
"E712", # Comparison to True/False
"E711", # Comparison to None
"E722", # Bare except
"E731", # Use lambda instead of def
]
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.targets.wheel.force-include]
"third_party" = "."
[tool.hatch.build.targets.wheel.sources]
"third_party" = "third_party"
[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