This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d500530a7 [python] Add Python 3.12, 3.13 to CI  (#9018)
9d500530a7 is described below

commit 9d500530a78fc9048f500b06bd847b3619c8a46b
Author: AuroraVoyage <[email protected]>
AuthorDate: Wed Aug 5 11:28:31 2026 +0800

    [python] Add Python 3.12, 3.13 to CI  (#9018)
---
 .github/workflows/paimon-python-checks.yml                   | 12 +++++++++---
 .../pypaimon/table/source/batch_vector_search_builder.py     |  2 +-
 paimon-python/pypaimon/table/source/vector_search_scan.py    |  1 +
 paimon-python/setup.py                                       |  2 ++
 4 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/paimon-python-checks.yml 
b/.github/workflows/paimon-python-checks.yml
index d8ff36e5f9..b4b53b4872 100755
--- a/.github/workflows/paimon-python-checks.yml
+++ b/.github/workflows/paimon-python-checks.yml
@@ -42,14 +42,14 @@ concurrency:
   cancel-in-progress: true
 
 jobs:
-  # Lint + test on selected versions only (3.6 / 3.7 low end, 3.10 / 3.11 
current), not every Python version.
+  # Lint + test on selected versions only (3.6 / 3.7 low end, 3.10 / 3.11 / 
3.12 / 3.13 current), not every Python version.
   lint-python:
     runs-on: ubuntu-latest
     container: "python:${{ matrix.python-version }}-slim"
     strategy:
       fail-fast: false
       matrix:
-        python-version: [ '3.6.15', '3.7', '3.10', '3.11' ]
+        python-version: [ '3.6.15', '3.7', '3.10', '3.11', '3.12', '3.13' ]
 
     steps:
       - name: Checkout code
@@ -131,7 +131,13 @@ jobs:
           else
             python -m pip install --upgrade pip
             pip install torch --index-url https://download.pytorch.org/whl/cpu
-            python -m pip install pyroaring readerwriterlock==1.0.9 
fsspec==2024.3.1 cachetools==5.3.3 ossfs==2023.12.0 ray==2.54.0 
fastavro==1.11.1 'isal>=1.8,<2' pyarrow==16.0.0 zstandard==0.24.0 
polars==1.32.0 duckdb==1.3.2 numpy==1.24.3 pandas==2.0.3 pylance==0.39.0 
cramjam flake8==4.0.1 pytest~=7.0 py4j==0.10.9.9 requests parameterized==0.9.0 
'daft>=0.7.6' 'datafusion>=54,<55' datasketches
+            python -m pip install pyroaring readerwriterlock==1.0.9 
fsspec==2024.3.1 cachetools==5.3.3 ossfs==2023.12.0 ray==2.54.0 
fastavro==1.11.1 'isal>=1.8,<2' zstandard==0.24.0 polars==1.32.0 duckdb==1.3.2 
pylance==0.39.0 cramjam pytest~=7.0 py4j==0.10.9.9 requests 
parameterized==0.9.0 'daft>=0.7.6' 'datafusion>=54,<55' datasketches
+            if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 
12) else 1)"; then
+              python -m pip install pyarrow==24.0.0 numpy==2.4.6 pandas==2.3.3 
flake8==7.1.2
+            else
+              python -m pip install pyarrow==16.0.0 numpy==1.24.3 
pandas==2.0.3 flake8==4.0.1
+            fi
+
             if [[ "${{ matrix.python-version }}" == "3.11" ]]; then
               # Exercise the 0.4 API in one lane until its wheel is published.
               python -m pip install 
"git+https://github.com/apache/paimon-rust.git@${PYPAIMON_RUST_REV}#subdirectory=bindings/python";
diff --git a/paimon-python/pypaimon/table/source/batch_vector_search_builder.py 
b/paimon-python/pypaimon/table/source/batch_vector_search_builder.py
index 199759487b..ce2f3ed9d4 100644
--- a/paimon-python/pypaimon/table/source/batch_vector_search_builder.py
+++ b/paimon-python/pypaimon/table/source/batch_vector_search_builder.py
@@ -23,9 +23,9 @@ from pypaimon.table.source.vector_search_builder import (
     AbstractVectorSearchBuilderImpl,
 )
 from pypaimon.table.source.vector_search_read import (
-    BatchVectorSearchRead,
     BatchVectorSearchReadImpl,
 )
+from pypaimon.table.source.vector_search_read import BatchVectorSearchRead  # 
noqa: F401
 
 
 class BatchVectorSearchBuilder(ABC):
diff --git a/paimon-python/pypaimon/table/source/vector_search_scan.py 
b/paimon-python/pypaimon/table/source/vector_search_scan.py
index c97c173f23..83e381d16b 100644
--- a/paimon-python/pypaimon/table/source/vector_search_scan.py
+++ b/paimon-python/pypaimon/table/source/vector_search_scan.py
@@ -26,6 +26,7 @@ from pypaimon.table.source.vector_search_split import (
     IndexVectorSearchSplit,
     RawVectorSearchSplit,
 )
+from pypaimon.table.source.vector_search_split import VectorSearchSplit  # 
noqa F401
 from pypaimon.utils.range import Range
 
 
diff --git a/paimon-python/setup.py b/paimon-python/setup.py
index 4b6b76d8ba..a5b1b6209e 100644
--- a/paimon-python/setup.py
+++ b/paimon-python/setup.py
@@ -216,6 +216,8 @@ setup(
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: 3.11",
+        "Programming Language :: Python :: 3.12",
+        "Programming Language :: Python :: 3.13",
     ],
     python_requires=">=3.6",
 )

Reply via email to