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

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new f251bc328e8 GH-50943: [Python] Add Pandas nightly's for cp315 & cp315t 
tests (#50946)
f251bc328e8 is described below

commit f251bc328e8006798987af22885f9e29938e3d55
Author: paultiq <[email protected]>
AuthorDate: Tue Sep 8 08:44:02 2026 -0400

    GH-50943: [Python] Add Pandas nightly's for cp315 & cp315t tests (#50946)
    
    ### Rationale for this change
    
    https://github.com/apache/arrow/pull/48191/ added 3.15.0rc1 to build 
matrix. At the time, Pandas was not yet shipping wheels for 3.15.0 and was 
disabled.
    
    Now that [Pandas has 3.15.0rc1 
wheels](https://github.com/pandas-dev/pandas/issues/66740), this PR makes a 
small change to add the nightly index and target the correct Pandas dev0 suffix.
    
    ### What changes are included in this PR?
    - Reenables Pandas tests
    - Adds nightly find-links and version for 3.15 via marker in the 
requirements-test.txt and requirements-wheel-test.txt files
    
    ### Are these changes tested?
    
    Tested against manylinux cp314, cp315 and cp315t.
    
    ### Are there any user-facing changes?
    
    No
    * GitHub Issue: #50943
    
    Authored-by: [email protected] <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 ci/scripts/python_wheel_unix_test.sh     | 7 +------
 ci/scripts/python_wheel_windows_test.bat | 4 +---
 python/requirements-test.txt             | 5 ++++-
 python/requirements-wheel-test.txt       | 5 ++++-
 4 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/ci/scripts/python_wheel_unix_test.sh 
b/ci/scripts/python_wheel_unix_test.sh
index 14fccc05a78..cb445611e23 100755
--- a/ci/scripts/python_wheel_unix_test.sh
+++ b/ci/scripts/python_wheel_unix_test.sh
@@ -47,12 +47,7 @@ export PYARROW_TEST_GANDIVA=OFF
 export PYARROW_TEST_GCS=${ARROW_GCS}
 export PYARROW_TEST_HDFS=ON
 export PYARROW_TEST_ORC=ON
-# TODO: To be removed once pandas provides wheels for Python 3.15
-if python -c "import sys; sys.exit(0 if sys.version_info < (3, 15) else 1)"; 
then
-  export PYARROW_TEST_PANDAS=ON
-else
-  export PYARROW_TEST_PANDAS=OFF
-fi
+export PYARROW_TEST_PANDAS=ON
 export PYARROW_TEST_PARQUET=ON
 export PYARROW_TEST_PARQUET_ENCRYPTION=ON
 export PYARROW_TEST_SUBSTRAIT=${ARROW_SUBSTRAIT}
diff --git a/ci/scripts/python_wheel_windows_test.bat 
b/ci/scripts/python_wheel_windows_test.bat
index 9d4d06249e4..1e9cacac8bf 100755
--- a/ci/scripts/python_wheel_windows_test.bat
+++ b/ci/scripts/python_wheel_windows_test.bat
@@ -26,9 +26,7 @@ set PYARROW_TEST_GANDIVA=OFF
 set PYARROW_TEST_GCS=ON
 set PYARROW_TEST_HDFS=ON
 set PYARROW_TEST_ORC=ON
-@REM TODO: To be removed once pandas provides wheels for Python 3.15
-%PYTHON_CMD% -c "import sys; sys.exit(0 if sys.version_info < (3, 15) else 1)"
-if errorlevel 1 (set PYARROW_TEST_PANDAS=OFF) else (set PYARROW_TEST_PANDAS=ON)
+set PYARROW_TEST_PANDAS=ON
 set PYARROW_TEST_PARQUET=ON
 set PYARROW_TEST_PARQUET_ENCRYPTION=ON
 set PYARROW_TEST_SUBSTRAIT=ON
diff --git a/python/requirements-test.txt b/python/requirements-test.txt
index 6af9aba6aeb..e1fc687ed3d 100644
--- a/python/requirements-test.txt
+++ b/python/requirements-test.txt
@@ -1,7 +1,10 @@
+--find-links 
https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/pandas/ # 
TODO: Remove after cp315 release
+
 cffi
 hypothesis
 packaging
-pandas; python_version < "3.15"  # TODO: temporary - reenable when 3.15 wheels 
ship
+pandas; python_version < "3.15"
+pandas>=3.1.0.dev0; python_version >= "3.15" # TODO: Remove after cp315 release
 pytest
 pytest-xdist
 pytz
diff --git a/python/requirements-wheel-test.txt 
b/python/requirements-wheel-test.txt
index ce75cbc3c06..93973c0f04b 100644
--- a/python/requirements-wheel-test.txt
+++ b/python/requirements-wheel-test.txt
@@ -1,3 +1,5 @@
+--find-links 
https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/pandas/ # 
TODO: Remove after cp315 release
+
 cffi
 cython
 hypothesis
@@ -17,4 +19,5 @@ numpy~=2.1.0; python_version == "3.13"
 numpy~=2.3.3; python_version == "3.14"
 numpy~=2.5.2; python_version == "3.15"  # TODO: 2.5.2 is for 3.15-rc1, after 
release, update to correct version  
 
-pandas; python_version < "3.15"  # TODO: temporary - reenable when 3.15 wheels 
ship
+pandas; python_version < "3.15"
+pandas>=3.1.0.dev0; python_version >= "3.15" # TODO: Remove after cp315 release

Reply via email to