pyproject.toml 926 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. [project]
  2. name = "agent"
  3. version = "0.1.6"
  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. "asyncio>=4.0.0",
  20. ]
  21. requires-python = ">=3.10"
  22. readme = "README.md"
  23. license = {text = "MIT"}
  24. [tool.pdm]
  25. build.package-dir = "src"
  26. distribution = true
  27. [project.scripts]
  28. tagging-agent-server = "agent.main:main" # 格式:模块:函数
  29. [tool.pdm.scripts]
  30. start = "python -m agent.main"
  31. start-bg = { shell = "nohup pdm run start > uvicorn.log 2>&1 & echo 'Started in background'; echo \"Logs in uvicorn.log\"" }
  32. [build-system]
  33. requires = ["pdm-backend"]
  34. build-backend = "pdm.backend"