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 78433a6c5b [python] Cap pyroaring at 1.0.3 on Python 3.8 (#10500)
78433a6c5b is described below
commit 78433a6c5b5377e497d02da39b649db04ff57aa0
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 9596257545..56e6cbe546 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -277,16 +277,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 c4a4ecb893..7340f7a061 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,<2",
"requests>=2.21.0,<3",
"urllib3>=1.26,<3",