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

lzljs3620320 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 7d9d301857 [python] fix cramjam version define and introduce 
dependency check in CI (#7005)
7d9d301857 is described below

commit 7d9d301857f4839a946a73fd132a89040e827c64
Author: XiaoHongbo <[email protected]>
AuthorDate: Mon Jan 12 16:52:59 2026 +0800

    [python] fix cramjam version define and introduce dependency check in CI 
(#7005)
---
 .github/workflows/paimon-python-checks.yml | 18 ++++++++++++++++++
 paimon-python/dev/requirements.txt         |  4 ++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/paimon-python-checks.yml 
b/.github/workflows/paimon-python-checks.yml
index 367668453d..720214666f 100755
--- a/.github/workflows/paimon-python-checks.yml
+++ b/.github/workflows/paimon-python-checks.yml
@@ -81,6 +81,24 @@ jobs:
       - name: Verify Python version
         run: python --version
 
+      - name: Verify requirements.txt dependencies can be installed
+        shell: bash
+        run: |
+          cd paimon-python
+          python -m pip install --upgrade pip
+          # Use --target to install to a temporary directory to verify 
dependencies
+          # This works for both Python 3.6 (pip 21.3.1) and Python 3.10+ (pip 
22.2+)
+          # since --target is supported in all pip versions
+          TEMP_DIR=$(mktemp -d)
+          python -m pip install -r dev/requirements.txt --target "$TEMP_DIR" 
|| {
+            echo "ERROR: Failed to resolve dependencies from 
dev/requirements.txt"
+            echo "This indicates a version conflict or unavailable package 
version"
+            rm -rf "$TEMP_DIR"
+            exit 1
+          }
+          rm -rf "$TEMP_DIR"
+          echo "✓ All dependencies in dev/requirements.txt can be resolved"
+
       - name: Build Java
         run: |
           echo "Start compiling modules"
diff --git a/paimon-python/dev/requirements.txt 
b/paimon-python/dev/requirements.txt
index 9f07798037..103ec94b32 100644
--- a/paimon-python/dev/requirements.txt
+++ b/paimon-python/dev/requirements.txt
@@ -35,8 +35,8 @@ pyarrow>=16,<20; python_version >= "3.8"
 pylance>=0.20,<1; python_version>="3.9"
 pylance>=0.10,<1; python_version>="3.8" and python_version<"3.9"
 pyroaring
-ray>=2.10,<3
+ray>=2.10,<3; python_version>="3.7"
 readerwriterlock>=1,<2
 torch
 zstandard>=0.19,<1
-cramjam>=0.6,<1; python_version>="3.7"
+cramjam>=1.3.0,<3; python_version>="3.7"

Reply via email to