pyproject.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [build-system]
  2. requires = ["setuptools>=68.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "agentpaas"
  6. version = "1.4.2"
  7. description = "Agent Platform as a Service — powered by lambdagent"
  8. readme = "README.md"
  9. license = "BUSL-1.1"
  10. requires-python = ">=3.10"
  11. authors = [
  12. {name = "Qin Liu", email = "qinliu@nju.edu.cn"},
  13. ]
  14. classifiers = [
  15. "Development Status :: 3 - Alpha",
  16. "Intended Audience :: Developers",
  17. "Programming Language :: Python :: 3",
  18. "Programming Language :: Python :: 3.10",
  19. "Programming Language :: Python :: 3.11",
  20. "Programming Language :: Python :: 3.12",
  21. ]
  22. dependencies = [
  23. # Core PaaS deps
  24. "fastapi>=0.100.0,<1.0",
  25. "uvicorn[standard]>=0.20.0",
  26. "pydantic>=2.0,<3.0",
  27. "pyyaml>=6.0,<7.0",
  28. # 上传端点(agentpack install-upload / update-upload 的 File/UploadFile)
  29. # 需要 multipart 解析 — FastAPI 在路由定义时即检查,缺了它连
  30. # `import agentpaas.api.app` 都会崩(CI 自 2026-06-07 起全红的根因;
  31. # 本地因 anaconda 自带而未暴露)。
  32. "python-multipart>=0.0.6",
  33. # Lambdagent kernel — agentpaas imports it from 17+ call sites.
  34. # Audit critical #4: previously omitted → ModuleNotFoundError on
  35. # every agent-execution endpoint of a clean `pip install agentpaas`.
  36. # In dev, install lambdagent first via `pip install -e ./lambdagent/`;
  37. # editable install will satisfy this requirement.
  38. "lambdagent>=0.1.0",
  39. ]
  40. [project.optional-dependencies]
  41. prod = ["asyncpg>=0.27", "redis>=5.0", "opentelemetry-sdk>=1.20", "prometheus-client>=0.17"]
  42. dev = ["httpx>=0.24", "pytest>=7.0", "pytest-asyncio>=0.21"]
  43. wechat = ["wechat-clawbot>=0.2.0"]
  44. [project.scripts]
  45. agentpaas = "agentpaas.__main__:main"
  46. [project.urls]
  47. Repository = "https://github.com/kenny67nju/lambdagentpaas"
  48. Issues = "https://github.com/kenny67nju/lambdagentpaas/issues"
  49. # ──────────────────────────────────────────────
  50. # src-layout (audit critical #4 / high #18 — was `where = [".."]` which
  51. # shipped a 1.2 KB wheel with metadata only and no source.)
  52. # ──────────────────────────────────────────────
  53. [tool.setuptools]
  54. package-dir = {"" = "src"}
  55. [tool.setuptools.packages.find]
  56. where = ["src"]
  57. include = ["agentpaas*"]