This is an automated email from the ASF dual-hosted git repository.
XiaoHongbo-Hope pushed a commit to branch release-2.1
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/release-2.1 by this push:
new 33b294a5bf [python] Cap pyroaring at 1.0.3 on Python 3.8 (#10500)
33b294a5bf is described below
commit 33b294a5bf9a813691b412d1ecd23bf6989c80f0
Author: Jiajia Li <[email protected]>
AuthorDate: Mon Oct 12 21:25:42 2026 +0800
[python] Cap pyroaring at 1.0.3 on Python 3.8 (#10500)
---
.github/workflows/ci-python.yml | 18 +++++++++---------
paimon-python/pyproject.toml | 3 ++-
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index e6e79d5d28..84f41a09d6 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -252,16 +252,16 @@ jobs:
build-essential git curl cmake \
&& sudo rm -rf /var/lib/apt/lists/*
- - name: Verify core installation on Python 3.8
- uses: actions/setup-python@v5
- with:
- python-version: '3.8'
- - name: Install core package (3.8)
+ # python:3.8-slim has no C or C++ compiler, so a dependency that has
only an
+ # sdist for 3.8 fails here instead of being built with build-essential.
+ - name: Verify core installation on Python 3.8 without a compiler
run: |
- cd paimon-python && python -m pip install --upgrade pip
- TEMP_DIR=$(mktemp -d)
- python -m pip install . --target "$TEMP_DIR" || { rm -rf
"$TEMP_DIR"; exit 1; }
- rm -rf "$TEMP_DIR" && echo "✓ Core package OK on Python 3.8"
+ docker run --rm -v "$PWD/paimon-python:/src:ro" python:3.8-slim sh
-ec '
+ cp -r /src /tmp/paimon-python
+ python -m pip install --upgrade pip
+ python -m pip install /tmp/paimon-python
+ '
+ echo "✓ Core package OK on Python 3.8"
- name: Verify core installation on Python 3.9
uses: actions/setup-python@v5
diff --git a/paimon-python/pyproject.toml b/paimon-python/pyproject.toml
index 8e1b2ac3ee..45a9602370 100644
--- a/paimon-python/pyproject.toml
+++ b/paimon-python/pyproject.toml
@@ -66,7 +66,8 @@ dependencies = [
"pyarrow>=16,!=19.0.0,<20; python_version >= '3.8'",
"pyroaring<=0.3.3; python_version < '3.7'",
"pyroaring<=0.4.5; python_version == '3.7'",
- "pyroaring>=1.0.0; python_version >= '3.8'",
+ "pyroaring>=1.0.0,<=1.0.3; python_version == '3.8'",
+ "pyroaring>=1.0.0; python_version >= '3.9'",
# readerwriterlock 1.0.10 uses positional-only syntax requiring Python 3.8.
"readerwriterlock>=1,<1.0.10; python_version < '3.8'",
"readerwriterlock>=1,<2; python_version >= '3.8'",