From 27b4155d23553281cb7a9490f3bc6d50ed76740a Mon Sep 17 00:00:00 2001 From: Brandon Schabell Date: Sun, 12 Oct 2025 00:12:42 -0500 Subject: [PATCH] Added python 3.11 support --- .github/workflows/test.yml | 5 +++-- .python-version | 3 ++- pyproject.toml | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de462cc..118ccb5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,8 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v6 with: - python-version: "3.10" + # Use oldest supported Python version for linting to ensure compatibility + python-version: "3.9" - name: Install dependencies run: uv sync --group dev - name: Run ruff linting @@ -23,7 +24,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Check out repository code uses: actions/checkout@v5 diff --git a/.python-version b/.python-version index da4ce15..c43caa3 100644 --- a/.python-version +++ b/.python-version @@ -1,2 +1,3 @@ 3.10 -3.9 \ No newline at end of file +3.11 +3.9 diff --git a/pyproject.toml b/pyproject.toml index 1e4e203..9780b87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", ] @@ -66,6 +67,10 @@ addopts = [ xfail_strict = true filterwarnings = [ "error", + # Ignore deprecation warning from webob using cgi module (deprecated in Python 3.11+) + "ignore:.*cgi.*is deprecated:DeprecationWarning", + # Ignore urllib3 OpenSSL warning on macOS with LibreSSL + "ignore:urllib3 v2.*:Warning", ] [tool.ruff]