From f88495a756a1f005c81a75874c985c1f1a832026 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:44:43 -0500 Subject: [PATCH 1/5] test python 3.13 support --- .github/workflows/ci.yml | 2 +- .github/workflows/examples_check.yml | 2 +- .github/workflows/install_from_hub.yml | 2 +- server_ci/Dockerfile.fastapi | 2 +- server_ci/Dockerfile.flask | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0129dccfa..e6da0a0f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/examples_check.yml b/.github/workflows/examples_check.yml index 6dea3d80c..d0baa49dd 100644 --- a/.github/workflows/examples_check.yml +++ b/.github/workflows/examples_check.yml @@ -36,7 +36,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11.x + python-version: 3.13.x - name: Install dependencies run: | diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index 1ae773e92..d9aa922f5 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11.x + python-version: 3.13.x - name: pip install from main run: pip install git+https://github.com/guardrails-ai/guardrails.git@main - name: Install PII validator diff --git a/server_ci/Dockerfile.fastapi b/server_ci/Dockerfile.fastapi index 56fa0fea2..4db17f542 100644 --- a/server_ci/Dockerfile.fastapi +++ b/server_ci/Dockerfile.fastapi @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.12 +FROM python:3.13 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json" diff --git a/server_ci/Dockerfile.flask b/server_ci/Dockerfile.flask index 0565dae6a..0290d99cf 100644 --- a/server_ci/Dockerfile.flask +++ b/server_ci/Dockerfile.flask @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.12 +FROM python:3.13 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json" From 309487cdb51ac7c259a57d7e89ed50eba8855255 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:46:50 -0500 Subject: [PATCH 2/5] target self branch --- .github/workflows/install_from_hub.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index d9aa922f5..caf915b9e 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -17,7 +17,7 @@ jobs: with: python-version: 3.13.x - name: pip install from main - run: pip install git+https://github.com/guardrails-ai/guardrails.git@main + run: pip install git+https://github.com/guardrails-ai/guardrails.git@py-3.13 - name: Install PII validator run: | guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing; From 75c6baea20c27b12452ae893d0ec054fd0a56475 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:49:44 -0500 Subject: [PATCH 3/5] update all matrices --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6da0a0f8..f34ac946f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -118,7 +118,7 @@ jobs: runs-on: LargeBois strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # TODO: fix errors so that we can run both `make dev` and `make full` # dependencies: ['dev', 'full'] # dependencies: ["full"] From e9a4f76b8e36eab8def4bd41ea84d0417a8fd06c Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Mon, 22 Sep 2025 09:51:08 -0500 Subject: [PATCH 4/5] flask version of api won't work on python 3.13 bc of old version of guardrails --- server_ci/Dockerfile.flask | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_ci/Dockerfile.flask b/server_ci/Dockerfile.flask index 0290d99cf..0565dae6a 100644 --- a/server_ci/Dockerfile.flask +++ b/server_ci/Dockerfile.flask @@ -1,5 +1,5 @@ # New LiteLLM version has a dependency on madoka which requires g++ to build the wheel -FROM python:3.13 +FROM python:3.12 ARG GUARDRAILS_TOKEN ARG GUARDRAILS_TEMPLATE="guard-template.json" From 9975074b04b030a9d8eee01d61f01f9da4f09ed7 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Thu, 6 Nov 2025 08:09:31 -0600 Subject: [PATCH 5/5] check cli compatibility --- .github/workflows/cli-compatibility.yml | 2 +- .github/workflows/install_from_hub.yml | 2 +- .github/workflows/release_version.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli-compatibility.yml b/.github/workflows/cli-compatibility.yml index 03a185df8..fb620a9ae 100644 --- a/.github/workflows/cli-compatibility.yml +++ b/.github/workflows/cli-compatibility.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] typer-version: ["0.16.0", "0.17.0", "0.18.0", "0.19.2"] click-version: ["8.1.0", "8.2.0"] exclude: diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index caf915b9e..d9aa922f5 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -17,7 +17,7 @@ jobs: with: python-version: 3.13.x - name: pip install from main - run: pip install git+https://github.com/guardrails-ai/guardrails.git@py-3.13 + run: pip install git+https://github.com/guardrails-ai/guardrails.git@main - name: Install PII validator run: | guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing; diff --git a/.github/workflows/release_version.yml b/.github/workflows/release_version.yml index af5a5caca..9fce5a6f6 100644 --- a/.github/workflows/release_version.yml +++ b/.github/workflows/release_version.yml @@ -12,9 +12,9 @@ jobs: uses: actions/checkout@v2 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.11.x + python-version: 3.13.x - name: Poetry cache uses: actions/cache@v3