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 3.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. ]
  28. [project.optional-dependencies]
  29. grpc = [
  30. "grpcio~=1.62.0",
  31. ]
  32. [tool.uv]
  33. dev-dependencies = [
  34. "autogen_test_utils",
  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. "autogen_ext==0.4.0.dev8",
  74. # Documentation tooling
  75. "sphinx-autobuild",
  76. ]
  77. [tool.ruff]
  78. extend = "../../pyproject.toml"
  79. exclude = ["build", "dist", "src/autogen_core/application/protos", "tests/protos", "samples/protos"]
  80. include = ["src/**", "samples/*.py", "docs/**/*.ipynb", "tests/**"]
  81. [tool.ruff.lint.per-file-ignores]
  82. "samples/**.py" = ["T20"]
  83. "docs/**.ipynb" = ["T20"]
  84. [tool.pyright]
  85. extends = "../../pyproject.toml"
  86. include = ["src", "tests", "samples"]
  87. exclude = ["src/autogen_core/application/protos", "tests/protos", "samples/protos"]
  88. reportDeprecated = true
  89. [tool.pytest.ini_options]
  90. minversion = "6.0"
  91. testpaths = ["tests"]
  92. asyncio_default_fixture_loop_scope = "session"
  93. [tool.nbqa.addopts]
  94. mypy = [
  95. "--disable-error-code=top-level-await"
  96. ]
  97. [tool.poe]
  98. include = "../../shared_tasks.toml"
  99. [tool.poe.tasks]
  100. test = "pytest -n auto"
  101. mypy.default_item_type = "cmd"
  102. mypy.sequence = [
  103. "mypy --config-file ../../pyproject.toml --exclude src/autogen_core/application/protos --exclude tests/protos src tests",
  104. "nbqa mypy docs/src --config-file ../../pyproject.toml",
  105. ]
  106. # Docs
  107. docs-clean = "rm -rf docs/build"
  108. # Inline tables are WAY easier to read but for some reason they break pyright. So we have to write it out this way.
  109. # Example of inline table:
  110. # docs-build = [
  111. # "docs-apidoc-all",
  112. # { cmd = "sphinx-build docs/src docs/build" }
  113. # ]
  114. docs-build = "sphinx-build docs/src docs/build"
  115. docs-serve = "sphinx-autobuild --watch src docs/src docs/build --port 8000 --jobs auto"
  116. docs-check = "sphinx-build --fail-on-warning docs/src docs/build"
  117. docs-check-examples = "sphinx-build -b code_lint docs/src docs/build"