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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8f3babab4ea4 [SPARK-61327][PYTHON][INFRA] Install PyArrow in the 
Python 3.15 CI image
8f3babab4ea4 is described below

commit 8f3babab4ea49ed6265be2db20feb1db41331b32
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Wed Nov 11 08:44:49 2026 +0800

    [SPARK-61327][PYTHON][INFRA] Install PyArrow in the Python 3.15 CI image
    
    ### What changes were proposed in this pull request?
    
    Install PyArrow in the Python 3.15 CI image and move its compatible 
dependencies into a dedicated `ci_python_315` group in `pyproject.toml`. The 
Dockerfile installs this group and continues to install `ml_torch` separately 
from the PyTorch index. Track this work in 
[SPARK-61327](https://issues.apache.org/jira/browse/SPARK-61327).
    
    ### Why are the changes needed?
    
    **PyArrow now publishes Python 3.15 Linux wheels, so we can add it to the 
Python 3.15 CI image.** PyArrow 26.0.0 and 26.0.1 provide these wheels.
    
    Some Python 3.15 CI tests fail because PyArrow is missing. Installing it 
should resolve those missing-dependency failures and enable Arrow-dependent 
test coverage. Pandas remains excluded while the standard dependency groups 
require pandas 2.x.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    - The [initial Python 3.15 image build passed in 
CI](https://github.com/zhengruifeng/spark/actions/runs/42609398311/job/129139730018),
 verifying PyArrow installation before the dependency-group refactor.
    - Wheel-only dependency resolution for CPython 3.15 on Linux x86_64 
succeeds for `ci_python_315`, selecting PyArrow 26.0.1.
    - Workflow YAML and JSON defaults were validated; `git diff --check` passes.
    
    The Python 3.15 image was tested by temporarily selecting it in 
`build_and_test.yml`; the standard `python-312` / `python3.12` defaults have 
been restored.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: OpenAI Codex (GPT-6)
    
    Closes #60237 from zhengruifeng/python-315-ci-pyarrow.
    
    Authored-by: Ruifeng Zheng <[email protected]>
    Signed-off-by: Ruifeng Zheng <[email protected]>
    
    
    skip-checks: true
---
 dev/spark-test-image/python-315/Dockerfile | 3 +--
 pyproject.toml                             | 9 +++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev/spark-test-image/python-315/Dockerfile 
b/dev/spark-test-image/python-315/Dockerfile
index 34a70fce764e..92464ee294a2 100644
--- a/dev/spark-test-image/python-315/Dockerfile
+++ b/dev/spark-test-image/python-315/Dockerfile
@@ -67,7 +67,6 @@ COPY --from=root pyproject.toml ./pyproject.toml
 
 RUN python3.15 -m pip install -U pip
 
-# pandas<3 does not have Python 3.15 wheels yet. Start with dependencies that 
can be installed.
 RUN python3.15 -m pip install --group ml_torch --index-url 
https://download.pytorch.org/whl/cpu && \
-    python3.15 -m pip install py4j psutil six unittest-xml-reporting && \
+    python3.15 -m pip install --group ci_python_315 && \
     python3.15 -m pip cache purge
diff --git a/pyproject.toml b/pyproject.toml
index a3508ca99f37..2cc3b78b4925 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -262,6 +262,15 @@ ci_classic_minimum = [
     "psutil",
 ]
 
+# pandas 2 does not have Python 3.15 wheels, so install only compatible 
dependencies.
+ci_python_315 = [
+    {include-group = "internal_py4j"},
+    {include-group = "internal_pyarrow"},
+    "psutil",
+    "six",
+    "unittest-xml-reporting",
+]
+
 ci_classic_pandas_3 = [
     {include-group = "internal_numpy"},
     {include-group = "internal_py4j"},


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to