pyproject.toml 904 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [project]
  2. name = "agent"
  3. version = "0.1.1"
  4. description = "Default template for PDM package"
  5. authors = [
  6. {name = "jiayongqiang", email = "15936285643@163.com"},
  7. ]
  8. dependencies = [
  9. "fastapi>=0.128.0",
  10. "uvicorn>=0.40.0",
  11. "requests>=2.32.5",
  12. "langchain>=1.2.9",
  13. "langchain-openai>=1.1.7",
  14. "elasticsearch==8.9.0",
  15. "asyncer>=0.0.17",
  16. "psycopg2-binary>=2.9.11",
  17. "loguru>=0.7.3",
  18. "openpyxl>=3.1.5",
  19. ]
  20. requires-python = ">=3.10"
  21. readme = "README.md"
  22. license = {text = "MIT"}
  23. [tool.pdm]
  24. build.package-dir = "src"
  25. distribution = true
  26. [project.scripts]
  27. tagging-agent-server = "agent.main:main" # 格式:模块:函数
  28. [tool.pdm.scripts]
  29. start = "python -m agent.main"
  30. start-bg = { shell = "nohup pdm run start > uvicorn.log 2>&1 & echo 'Started in background'; echo \"Logs in uvicorn.log\"" }
  31. [build-system]
  32. requires = ["pdm-backend"]
  33. build-backend = "pdm.backend"