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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. [build-system]
  2. requires = ["hatchling"]
  3. build-backend = "hatchling.build"
  4. [project]
  5. name = "autogen-core"
  6. version = "0.4.0.dev11"
  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. "aioconsole",
  20. "aiohttp",
  21. "typing-extensions",
  22. "pydantic<3.0.0,>=2.0.0",
  23. "protobuf~=4.25.1",
  24. "tiktoken",
  25. "opentelemetry-api~=1.27.0",
  26. "asyncio_atexit",
  27. "jsonref~=1.1.0",
  28. ]
  29. [project.optional-dependencies]
  30. grpc = [
  31. "grpcio~=1.62.0",
  32. ]
  33. [tool.uv]
  34. dev-dependencies = [
  35. "autogen_test_utils",
  36. "aiofiles",
  37. "azure-identity",
  38. "chess",
  39. "colorama",
  40. "langchain-openai",
  41. "langgraph",
  42. "llama-index-embeddings-azure-openai",
  43. "llama-index-llms-azure-openai",
  44. "llama-index-readers-web",
  45. "llama-index-readers-wikipedia",
  46. "llama-index-tools-wikipedia",
  47. "llama-index",
  48. "markdownify",
  49. "nbqa",
  50. "pip",
  51. "polars",
  52. "python-dotenv",
  53. "requests",
  54. "tavily-python",
  55. "textual-dev",
  56. "textual-imageview",
  57. "textual",
  58. "types-aiofiles",
  59. "types-pillow",
  60. "types-protobuf",
  61. "types-requests",
  62. "types-docker",
  63. "wikipedia",
  64. "opentelemetry-sdk>=1.27.0",
  65. # Documentation
  66. "myst-nb==1.1.2",
  67. "pydata-sphinx-theme==0.15.4",
  68. "sphinx-copybutton",
  69. "sphinx-design",
  70. "sphinx",
  71. "sphinxcontrib-apidoc",
  72. "autodoc_pydantic~=2.2",
  73. "pygments",
  74. "autogen_ext==0.4.0.dev11",
  75. # Documentation tooling
  76. "sphinx-autobuild",
  77. ]
  78. [tool.ruff]
  79. extend = "../../pyproject.toml"
  80. exclude = ["build", "dist", "src/autogen_core/application/protos", "tests/protos", "samples/protos"]
  81. include = ["src/**", "samples/*.py", "docs/**/*.ipynb", "tests/**"]
  82. [tool.ruff.lint.per-file-ignores]
  83. "samples/**.py" = ["T20"]
  84. "docs/**.ipynb" = ["T20"]
  85. [tool.pyright]
  86. extends = "../../pyproject.toml"
  87. include = ["src", "tests", "samples"]
  88. exclude = ["src/autogen_core/application/protos", "tests/protos", "samples/protos"]
  89. reportDeprecated = true
  90. [tool.pytest.ini_options]
  91. minversion = "6.0"
  92. testpaths = ["tests"]
  93. asyncio_default_fixture_loop_scope = "session"
  94. [tool.nbqa.addopts]
  95. mypy = [
  96. "--disable-error-code=top-level-await"
  97. ]
  98. [tool.poe]
  99. include = "../../shared_tasks.toml"
  100. [tool.poe.tasks]
  101. test = "pytest -n auto"
  102. mypy.default_item_type = "cmd"
  103. mypy.sequence = [
  104. "mypy --config-file ../../pyproject.toml --exclude src/autogen_core/application/protos --exclude tests/protos src tests",
  105. "nbqa mypy docs/src --config-file ../../pyproject.toml",
  106. ]
  107. # Docs
  108. docs-clean = "rm -rf docs/build"
  109. # Inline tables are WAY easier to read but for some reason they break pyright. So we have to write it out this way.
  110. # Example of inline table:
  111. # docs-build = [
  112. # "docs-apidoc-all",
  113. # { cmd = "sphinx-build docs/src docs/build" }
  114. # ]
  115. docs-build = "sphinx-build docs/src docs/build"
  116. docs-serve = "sphinx-autobuild --watch src docs/src docs/build --port 8000 --jobs auto"
  117. docs-check = "sphinx-build --fail-on-warning docs/src docs/build"
  118. docs-check-examples = "sphinx-build -b code_lint docs/src docs/build"