You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyproject.toml 4.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. [build-system]
  2. requires = ["hatchling"]
  3. build-backend = "hatchling.build"
  4. [project]
  5. name = "autogen-core"
  6. version = "0.4.0.dev8"
  7. license = {file = "LICENSE-CODE"}
  8. description = "Foundational interfaces and agent runtime implementation for AutoGen"
  9. readme = "README.md"
  10. requires-python = ">=3.10"
  11. classifiers = [
  12. "Programming Language :: Python :: 3",
  13. "License :: OSI Approved :: MIT License",
  14. "Operating System :: OS Independent",
  15. ]
  16. dependencies = [
  17. "openai>=1.3",
  18. "pillow",
  19. "aiohttp",
  20. "typing-extensions",
  21. "pydantic<3.0.0,>=2.0.0",
  22. "protobuf~=4.25.1",
  23. "tiktoken",
  24. "opentelemetry-api~=1.27.0",
  25. "asyncio_atexit",
  26. "jsonref~=1.1.0",
  27. "grpcio~=1.62.0", # TODO: update this once we have a stable version.
  28. ]
  29. [project.optional-dependencies]
  30. grpc = [
  31. "grpcio~=1.62.0",
  32. ]
  33. [tool.uv]
  34. dev-dependencies = [
  35. "aiofiles",
  36. "azure-identity",
  37. "chess",
  38. "colorama",
  39. "langchain-openai",
  40. "langgraph",
  41. "llama-index-embeddings-azure-openai",
  42. "llama-index-llms-azure-openai",
  43. "llama-index-readers-web",
  44. "llama-index-readers-wikipedia",
  45. "llama-index-tools-wikipedia",
  46. "llama-index",
  47. "markdownify",
  48. "nbqa",
  49. "pip",
  50. "polars",
  51. "python-dotenv",
  52. "requests",
  53. "tavily-python",
  54. "textual-dev",
  55. "textual-imageview",
  56. "textual",
  57. "types-aiofiles",
  58. "types-pillow",
  59. "types-protobuf",
  60. "types-requests",
  61. "types-docker",
  62. "wikipedia",
  63. "opentelemetry-sdk>=1.27.0",
  64. # Documentation
  65. "myst-nb==1.1.2",
  66. "pydata-sphinx-theme==0.15.4",
  67. "sphinx-copybutton",
  68. "sphinx-design",
  69. "sphinx",
  70. "sphinxcontrib-apidoc",
  71. "autodoc_pydantic~=2.2",
  72. "pygments",
  73. # Documentation tooling
  74. "sphinx-autobuild",
  75. ]
  76. [tool.ruff]
  77. extend = "../../pyproject.toml"
  78. exclude = ["build", "dist", "src/autogen_core/application/protos", "tests/protos"]
  79. include = ["src/**", "samples/*.py", "docs/**/*.ipynb", "tests/**"]
  80. [tool.ruff.lint.per-file-ignores]
  81. "samples/**.py" = ["T20"]
  82. "docs/**.ipynb" = ["T20"]
  83. [tool.pyright]
  84. extends = "../../pyproject.toml"
  85. include = ["src", "tests", "samples"]
  86. exclude = ["src/autogen_core/application/protos", "tests/protos"]
  87. reportDeprecated = true
  88. [tool.pytest.ini_options]
  89. minversion = "6.0"
  90. testpaths = ["tests"]
  91. asyncio_default_fixture_loop_scope = "session"
  92. [tool.nbqa.addopts]
  93. mypy = [
  94. "--disable-error-code=top-level-await"
  95. ]
  96. [tool.poe]
  97. include = "../../shared_tasks.toml"
  98. [tool.poe.tasks]
  99. test = "pytest -n auto"
  100. mypy.default_item_type = "cmd"
  101. mypy.sequence = [
  102. "mypy --config-file ../../pyproject.toml --exclude src/autogen_core/application/protos --exclude tests/protos src tests",
  103. "nbqa mypy docs/src --config-file ../../pyproject.toml",
  104. ]
  105. # Docs
  106. docs-clean = "rm -rf docs/build && rm -rf docs/src/reference/python/"
  107. docs-apidoc-core = "sphinx-apidoc --templatedir docs/src/_apidoc_templates --no-toc --separate --force -o docs/src/reference/python/autogen_core src/autogen_core src/autogen_core/application/protos/"
  108. docs-apidoc-agentchat = "sphinx-apidoc --templatedir docs/src/_apidoc_templates --no-toc --separate --force -o docs/src/reference/python/autogen_agentchat ../autogen-agentchat/src/autogen_agentchat"
  109. docs-apidoc-ext = "sphinx-apidoc --templatedir docs/src/_apidoc_templates --no-toc --separate --force -o docs/src/reference/python/autogen_ext ../autogen-ext/src/autogen_ext ../autogen-ext/src/autogen_ext/code_executor ../autogen-ext/src/autogen_ext/tools/langchain"
  110. docs-apidoc-all = [
  111. "docs-apidoc-core",
  112. "docs-apidoc-agentchat",
  113. "docs-apidoc-ext",
  114. ]
  115. # Inline tables are WAY easier to read but for some reason they break pyright. So we have to write it out this way.
  116. # Example of inline table:
  117. # docs-build = [
  118. # "docs-apidoc-all",
  119. # { cmd = "sphinx-build docs/src docs/build" }
  120. # ]
  121. [[tool.poe.tasks.docs-build.sequence]]
  122. ref = "docs-apidoc-all"
  123. [[tool.poe.tasks.docs-build.sequence]]
  124. cmd = "sphinx-build docs/src docs/build"
  125. [[tool.poe.tasks.docs-serve.sequence]]
  126. ref = "docs-apidoc-all"
  127. [[tool.poe.tasks.docs-serve.sequence]]
  128. cmd = "sphinx-autobuild --watch src docs/src docs/build --port 8000 --jobs auto"
  129. [[tool.poe.tasks.docs-check.sequence]]
  130. ref = "docs-apidoc-all"
  131. [[tool.poe.tasks.docs-check.sequence]]
  132. ref = "docs-apidoc-all"
  133. [[tool.poe.tasks.docs-check.sequence]]
  134. cmd = "sphinx-build --fail-on-warning docs/src docs/build"
  135. [[tool.poe.tasks.docs-check-examples.sequence]]
  136. ref = "docs-apidoc-all"
  137. [[tool.poe.tasks.docs-check-examples.sequence]]
  138. cmd = "sphinx-build -b code_lint docs/src docs/build"