From 1273d95234bdef9d0d1be8a87fa46a2567917438 Mon Sep 17 00:00:00 2001 From: Nikita Pastukhov Date: Tue, 7 Oct 2025 21:49:26 +0300 Subject: [PATCH 1/3] ci: add tests for python3.14 --- .cursor/rules/ag2.mdc | 10 +++++++ .github/workflows/contrib-test.yml | 24 ++++++++-------- .github/workflows/core-test.yml | 2 +- .github/workflows/test-with-optional-deps.yml | 28 +++++++++---------- .github/workflows/type-check.yml | 6 ++-- pyproject.toml | 1 + 6 files changed, 41 insertions(+), 30 deletions(-) create mode 100644 .cursor/rules/ag2.mdc diff --git a/.cursor/rules/ag2.mdc b/.cursor/rules/ag2.mdc new file mode 100644 index 00000000000..066f13a4748 --- /dev/null +++ b/.cursor/rules/ag2.mdc @@ -0,0 +1,10 @@ +--- +alwaysApply: true +--- + + +# Documentation + +- Documentation navigation placed in `website/mint-json-template.json.jinja`. +- `website/docs` directory is a source of truth for the documentation. Please, use it to create any new documentation pages (in `.mdx` format) +- All files located in `website/mkdocs/docs` are automatically generated. Do not edit them manually. diff --git a/.github/workflows/contrib-test.yml b/.github/workflows/contrib-test.yml index 03539c91e3b..57265f33803 100644 --- a/.github/workflows/contrib-test.yml +++ b/.github/workflows/contrib-test.yml @@ -298,7 +298,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 - uses: astral-sh/setup-uv@v6 @@ -337,7 +337,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.13"] + python-version: ["3.14"] steps: - uses: actions/checkout@v5 with: @@ -382,7 +382,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -495,7 +495,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest", "windows-latest", "macos-latest"] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -537,7 +537,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -577,7 +577,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -617,7 +617,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -657,7 +657,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -696,7 +696,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 - uses: astral-sh/setup-uv@v6 @@ -735,7 +735,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -775,7 +775,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 @@ -815,7 +815,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/core-test.yml b/.github/workflows/core-test.yml index 8152bc231eb..93c610a3676 100644 --- a/.github/workflows/core-test.yml +++ b/.github/workflows/core-test.yml @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/test-with-optional-deps.yml b/.github/workflows/test-with-optional-deps.yml index b26b36f9adc..ea1facb74f9 100644 --- a/.github/workflows/test-with-optional-deps.yml +++ b/.github/workflows/test-with-optional-deps.yml @@ -81,42 +81,42 @@ jobs: - "google-api" - "wikipedia-api" os: [ubuntu-latest, macos-latest, windows-latest] - # Run tests only for py versions 3.10, 3.13 - python-version: ["3.10", "3.13"] + # Run tests only for py versions 3.10, 3.14 + python-version: ["3.10", "3.14"] # add more if needed exclude: - # Issues with installing retrievechat-qdrant in python 3.13 - - python-version: "3.13" + # Issues with installing retrievechat-qdrant in python 3.14 + - python-version: "3.14" optional-dependencies: "retrievechat-qdrant" # Browser use doesn't support below python 3.11 - python-version: "3.10" optional-dependencies: "browser-use" - # Skip if os is mac or windows, python version is 3.13 and optional-dependencies is starting with retrievechat + # Skip if os is mac or windows, python version is 3.14 and optional-dependencies is starting with retrievechat # Because torch and sentence_transformers creates issues while trying to install - os: macos-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "retrievechat" - os: macos-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "retrievechat-pgvector" - os: macos-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "retrievechat-mongodb" - os: windows-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "retrievechat" - os: windows-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "retrievechat-pgvector" - os: windows-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "retrievechat-mongodb" - # Skip RAG tests on macOS and Windows with Python 3.13 due to issues with dependencies like PyTorch and sentence_transformers + # Skip RAG tests on macOS and Windows with Python 3.14 due to issues with dependencies like PyTorch and sentence_transformers - os: macos-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "rag" - os: windows-latest - python-version: "3.13" + python-version: "3.14" optional-dependencies: "rag" steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml index 4051b5fcf95..800b204170b 100644 --- a/.github/workflows/type-check.yml +++ b/.github/workflows/type-check.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] optional-dependencies: - "none" # LLMs @@ -53,8 +53,8 @@ jobs: - "mcp" - "websockets" exclude: - # Issues with installing retrievechat-qdrant in python 3.13 - - python-version: "3.13" + # Issues with installing retrievechat-qdrant in python 3.14 + - python-version: "3.14" optional-dependencies: "retrievechat-qdrant" # Browser use doesn't support below python 3.11 - python-version: "3.10" diff --git a/pyproject.toml b/pyproject.toml index 37aef3a3274..6bcd83285fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", From 0f041d2799b14e5135c5e77a344f2a2543da5374 Mon Sep 17 00:00:00 2001 From: Nikita Pastukhov Date: Tue, 7 Oct 2025 21:50:27 +0300 Subject: [PATCH 2/3] chore: remove cursor rules --- .cursor/rules/ag2.mdc | 10 ---------- .gitignore | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 .cursor/rules/ag2.mdc diff --git a/.cursor/rules/ag2.mdc b/.cursor/rules/ag2.mdc deleted file mode 100644 index 066f13a4748..00000000000 --- a/.cursor/rules/ag2.mdc +++ /dev/null @@ -1,10 +0,0 @@ ---- -alwaysApply: true ---- - - -# Documentation - -- Documentation navigation placed in `website/mint-json-template.json.jinja`. -- `website/docs` directory is a source of truth for the documentation. Please, use it to create any new documentation pages (in `.mdx` format) -- All files located in `website/mkdocs/docs` are automatically generated. Do not edit them manually. diff --git a/.gitignore b/.gitignore index feac10078d8..ac7843233f9 100644 --- a/.gitignore +++ b/.gitignore @@ -154,6 +154,7 @@ logs .idea/* .DS_Store +.cursor/ output/ *.pkl From 4aa69c6e2c807efc53acea54e558cd041a5cc133 Mon Sep 17 00:00:00 2001 From: "joggrbot[bot]" <107281636+joggrbot[bot]@users.noreply.github.com> Date: Thu, 23 Oct 2025 06:02:44 +1100 Subject: [PATCH 3/3] docs: for pull #2138, fixed 1 outdated doc(s) (#2158) * [skip ci] docs: fix outdated docs * Change < 15 to <=14 --------- Co-authored-by: joggrbot[bot] <107281636+joggrbot[bot]@users.noreply.github.com> Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com> --- website/docs/installation/Installation.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/installation/Installation.mdx b/website/docs/installation/Installation.mdx index 87a38033164..df4c0ca42ae 100644 --- a/website/docs/installation/Installation.mdx +++ b/website/docs/installation/Installation.mdx @@ -65,7 +65,7 @@ When installing AG2 locally, we recommend using a virtual environment for the in ## Install AG2 -AG2 requires **Python version >= 3.10, < 3.14**. It can be installed from pip: +AG2 requires **Python version >= 3.10, <= 3.14**. It can be installed from pip: ```bash pip install ag2[openai] @@ -113,3 +113,4 @@ To learn more about code executors, see the [code executors tutorial](/docs/user You might have seen a different way of defining the executors without creating the executor object, please refer to FAQ for this [legacy code executor](/docs/faq/FAQ#legacy-code-executor). +