AgentOps-AI / agentops

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks like CrewAI, Langchain, and Autogen
https://agentops.ai
MIT License
2.2k stars 214 forks source link

Fix packaging #526

Closed teocns closed 4 days ago

teocns commented 4 days ago
  1. Explicit packages definition; fixes global package install error

➜  agentops git:(otel-exporter) uv sync --all-extras
Resolved 75 packages in 2.08s
  × Failed to build `agentops @ file:///Users/noob/agentops`
  ╰─▶ Build backend failed to determine requirements with `build_editable()` (exit status: 1)

      [stderr]
      error: Multiple top-level packages discovered in a flat-layout: ['dev', 'agentops'].

      To avoid accidental inclusion of unwanted files or directories,
      setuptools will not proceed with this build.

      If you are trying to create a single distribution with multiple packages
      on purpose, you should not rely on automatic discovery.
      Instead, consider the following options:

      1. set up custom discovery (`find` directive with `include` or `exclude`)
      2. use a `src-layout`
      3. explicitly set `py_modules` or `packages` with a list of names

      To find more information, look for "package discovery" on setuptools docs.
  1. Fixes #524

  2. profit: uv sync --all-extras now passes