2024-05-15 09:49:44 -04:00
|
|
|
[build-system]
|
2024-06-19 13:49:13 -04:00
|
|
|
requires = ["hatchling"]
|
|
|
|
build-backend = "hatchling.build"
|
2024-05-15 09:49:44 -04:00
|
|
|
|
|
|
|
[project]
|
2024-08-28 12:47:04 -04:00
|
|
|
name = "autogen-core"
|
2025-06-04 22:47:36 -07:00
|
|
|
version = "0.6.1"
|
2024-10-09 15:01:09 -04:00
|
|
|
license = {file = "LICENSE-CODE"}
|
2024-08-29 10:56:33 -04:00
|
|
|
description = "Foundational interfaces and agent runtime implementation for AutoGen"
|
2024-05-15 09:49:44 -04:00
|
|
|
readme = "README.md"
|
|
|
|
requires-python = ">=3.10"
|
|
|
|
classifiers = [
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
]
|
2024-05-29 17:12:02 -04:00
|
|
|
dependencies = [
|
2024-12-26 09:40:32 -08:00
|
|
|
"pillow>=11.0.0",
|
2025-01-07 13:30:04 -05:00
|
|
|
"typing-extensions>=4.0.0",
|
2024-12-27 05:53:52 -08:00
|
|
|
"pydantic<3.0.0,>=2.10.0",
|
2025-01-28 22:11:54 -08:00
|
|
|
"protobuf~=5.29.3",
|
2025-06-12 15:07:47 -07:00
|
|
|
"opentelemetry-api>=1.34.1",
|
2024-11-15 19:40:46 +01:00
|
|
|
"jsonref~=1.1.0",
|
2025-06-12 15:07:47 -07:00
|
|
|
"opentelemetry-semantic-conventions==0.55b1",
|
2024-05-29 17:12:02 -04:00
|
|
|
]
|
2024-05-15 09:49:44 -04:00
|
|
|
|
2024-12-27 13:11:42 -05:00
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
dev = [
|
2024-07-24 20:01:01 +01:00
|
|
|
"aiofiles",
|
2025-01-07 13:30:04 -05:00
|
|
|
"asyncio_atexit",
|
|
|
|
"autogen_test_utils",
|
2024-08-29 17:21:53 -04:00
|
|
|
"azure-identity",
|
2024-07-24 20:01:01 +01:00
|
|
|
"chess",
|
|
|
|
"colorama",
|
2024-07-26 18:23:31 -07:00
|
|
|
"langchain-openai",
|
2024-08-29 17:21:53 -04:00
|
|
|
"langgraph",
|
|
|
|
"llama-index-embeddings-azure-openai",
|
|
|
|
"llama-index-llms-azure-openai",
|
2024-07-24 20:01:01 +01:00
|
|
|
"llama-index-readers-web",
|
|
|
|
"llama-index-readers-wikipedia",
|
|
|
|
"llama-index-tools-wikipedia",
|
|
|
|
"llama-index",
|
|
|
|
"markdownify",
|
2024-08-29 17:21:53 -04:00
|
|
|
"nbqa",
|
2025-06-12 15:07:47 -07:00
|
|
|
"opentelemetry-sdk>=1.34.1",
|
2024-07-24 20:01:01 +01:00
|
|
|
"pip",
|
2024-05-29 17:12:02 -04:00
|
|
|
"polars",
|
2024-07-24 20:01:01 +01:00
|
|
|
"python-dotenv",
|
2024-08-08 00:14:18 -07:00
|
|
|
"requests",
|
2024-06-07 13:33:51 -07:00
|
|
|
"tavily-python",
|
2024-06-19 13:49:13 -04:00
|
|
|
"textual-dev",
|
2024-06-17 17:20:46 -07:00
|
|
|
"textual-imageview",
|
2024-07-24 20:01:01 +01:00
|
|
|
"textual",
|
|
|
|
"types-aiofiles",
|
2025-01-07 13:30:04 -05:00
|
|
|
"types-docker",
|
2024-07-24 20:01:01 +01:00
|
|
|
"types-pillow",
|
2024-07-08 16:45:14 -04:00
|
|
|
"types-protobuf",
|
2024-08-08 00:14:18 -07:00
|
|
|
"types-requests",
|
2024-08-07 17:38:44 -04:00
|
|
|
"wikipedia",
|
2024-10-09 10:08:57 -04:00
|
|
|
|
|
|
|
# Documentation
|
|
|
|
"myst-nb==1.1.2",
|
2025-03-06 14:47:36 -05:00
|
|
|
"pydata-sphinx-theme==0.16.0",
|
2024-09-17 06:22:38 -07:00
|
|
|
"sphinx-copybutton",
|
2024-10-09 10:08:57 -04:00
|
|
|
"sphinx-design",
|
|
|
|
"sphinx",
|
|
|
|
"sphinxcontrib-apidoc",
|
2024-10-09 14:46:43 -04:00
|
|
|
"autodoc_pydantic~=2.2",
|
2024-11-25 16:10:45 -05:00
|
|
|
"pygments",
|
2025-01-07 09:57:23 -08:00
|
|
|
"sphinxext-rediraffe",
|
2025-06-12 15:07:47 -07:00
|
|
|
"opentelemetry-instrumentation-openai",
|
2024-10-09 10:08:57 -04:00
|
|
|
|
2025-06-04 22:47:36 -07:00
|
|
|
"autogen_ext==0.6.1",
|
2024-12-04 16:23:20 -08:00
|
|
|
|
2024-10-09 10:08:57 -04:00
|
|
|
# Documentation tooling
|
2025-01-16 15:47:38 -08:00
|
|
|
"diskcache",
|
|
|
|
"redis",
|
2024-10-09 10:08:57 -04:00
|
|
|
"sphinx-autobuild",
|
2024-05-29 17:12:02 -04:00
|
|
|
]
|
2024-05-15 09:49:44 -04:00
|
|
|
|
2024-07-02 10:58:49 -07:00
|
|
|
|
2024-05-15 09:49:44 -04:00
|
|
|
[tool.ruff]
|
2024-08-29 09:46:06 -04:00
|
|
|
extend = "../../pyproject.toml"
|
2025-01-09 15:06:01 -05:00
|
|
|
exclude = ["build", "dist", "src/autogen_core/application/protos", "tests/protos"]
|
|
|
|
include = ["src/**", "docs/**/*.ipynb", "tests/**"]
|
2024-05-15 09:49:44 -04:00
|
|
|
|
2024-09-23 16:10:57 -04:00
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
"docs/**.ipynb" = ["T20"]
|
|
|
|
|
2024-05-15 09:49:44 -04:00
|
|
|
[tool.pyright]
|
2024-09-20 15:51:38 -04:00
|
|
|
extends = "../../pyproject.toml"
|
2025-01-09 15:06:01 -05:00
|
|
|
include = ["src", "tests"]
|
|
|
|
exclude = ["src/autogen_core/application/protos", "tests/protos"]
|
2024-11-26 19:31:23 -05:00
|
|
|
reportDeprecated = true
|
2024-05-20 13:32:08 -06:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
minversion = "6.0"
|
|
|
|
testpaths = ["tests"]
|
2024-08-30 14:00:20 -04:00
|
|
|
asyncio_default_fixture_loop_scope = "session"
|
2024-06-28 08:03:42 -07:00
|
|
|
|
2024-08-07 17:38:44 -04:00
|
|
|
[tool.nbqa.addopts]
|
|
|
|
mypy = [
|
|
|
|
"--disable-error-code=top-level-await"
|
|
|
|
]
|
2024-08-29 09:46:06 -04:00
|
|
|
|
|
|
|
[tool.poe]
|
|
|
|
include = "../../shared_tasks.toml"
|
|
|
|
|
|
|
|
[tool.poe.tasks]
|
2025-01-18 00:32:18 +10:00
|
|
|
test = "pytest -n auto --cov=src --cov-report=term-missing --cov-report=xml"
|
2024-08-29 09:46:06 -04:00
|
|
|
mypy.default_item_type = "cmd"
|
|
|
|
mypy.sequence = [
|
2024-11-26 15:37:40 -05:00
|
|
|
"mypy --config-file ../../pyproject.toml --exclude src/autogen_core/application/protos --exclude tests/protos src tests",
|
2024-08-29 09:46:06 -04:00
|
|
|
"nbqa mypy docs/src --config-file ../../pyproject.toml",
|
|
|
|
]
|
2024-09-17 14:16:13 -04:00
|
|
|
|
|
|
|
# Docs
|
2024-12-04 18:24:07 -08:00
|
|
|
docs-clean = "rm -rf docs/build"
|
2024-09-17 14:16:13 -04:00
|
|
|
|
|
|
|
# Inline tables are WAY easier to read but for some reason they break pyright. So we have to write it out this way.
|
|
|
|
# Example of inline table:
|
|
|
|
# docs-build = [
|
|
|
|
# "docs-apidoc-all",
|
|
|
|
# { cmd = "sphinx-build docs/src docs/build" }
|
|
|
|
# ]
|
|
|
|
|
2024-12-04 18:24:07 -08:00
|
|
|
docs-build = "sphinx-build docs/src docs/build"
|
2024-09-17 14:16:13 -04:00
|
|
|
|
2024-12-04 18:24:07 -08:00
|
|
|
docs-serve = "sphinx-autobuild --watch src docs/src docs/build --port 8000 --jobs auto"
|
2024-11-25 16:10:45 -05:00
|
|
|
|
2024-12-04 18:24:07 -08:00
|
|
|
docs-check = "sphinx-build --fail-on-warning docs/src docs/build"
|
2024-11-25 16:10:45 -05:00
|
|
|
|
2024-12-04 18:24:07 -08:00
|
|
|
docs-check-examples = "sphinx-build -b code_lint docs/src docs/build"
|
2024-11-25 16:10:45 -05:00
|
|
|
|