From 31e003fc3fbc6f19438d7bda4f9f93da2526d4f4 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 16 Oct 2024 20:57:46 +0200 Subject: [PATCH 1/2] CI: Use ubuntu-22.04 to support Python 3.7 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b0fbaf3..eb48ca9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,8 +24,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: ["ubuntu-latest"] python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + os: ["ubuntu-22.04"] cratedb-version: ["nightly"] fail-fast: false From df853ac69cc7d8bc9ed46a6fd6208b7cf3abf5eb Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 16 Oct 2024 20:58:10 +0200 Subject: [PATCH 2/2] CI: Verify support on Python 3.13 --- .github/workflows/tests.yml | 2 +- pyproject.toml | 3 ++- tests/test_cratedb_polars_read.py | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eb48ca9..f4ec239 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,8 +24,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] os: ["ubuntu-22.04"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] cratedb-version: ["nightly"] fail-fast: false diff --git a/pyproject.toml b/pyproject.toml index ce48051..dd383f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Communications", "Topic :: Database", "Topic :: Documentation", @@ -78,7 +79,7 @@ optional-dependencies.release = [ ] optional-dependencies.test = [ "pandas<2.3", - "polars[pyarrow]<1.10", + "polars[pyarrow]<1.10; python_version<'3.13'", "pytest<9", "pytest-asyncio<1", "pytest-cov<6", diff --git a/tests/test_cratedb_polars_read.py b/tests/test_cratedb_polars_read.py index 6f6dd9b..2523198 100644 --- a/tests/test_cratedb_polars_read.py +++ b/tests/test_cratedb_polars_read.py @@ -1,7 +1,9 @@ +# ruff: noqa: E402 import sys -import polars as pl import pytest + +pl = pytest.importorskip("polars") import sqlalchemy as sa from polars.testing import assert_frame_equal