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

jorisvandenbossche 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 2e83aa63d9 GH-43690: [Python][CI] Simplify 
python/requirements-wheel-test.txt file (#43691)
2e83aa63d9 is described below

commit 2e83aa63d95a6fa380efdd5e5cb720a3154f9c93
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Thu Aug 22 09:57:02 2024 +0200

    GH-43690: [Python][CI] Simplify python/requirements-wheel-test.txt file 
(#43691)
    
    ### Rationale for this change
    
    The current 
[requirements-wheel-test.txt](https://github.com/apache/arrow/blob/7c8909a144f2e8d593dc8ad363ac95b2865b04ca/python/requirements-wheel-test.txt)
 file has quite complex and detailed version pinning, varying per architecture. 
I think this can be simplified because we just want to test with some older 
version of numpy and pandas (and the exact version isn't that important).
    
    * GitHub Issue: #43690
    
    Authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Joris Van den Bossche <[email protected]>
---
 python/requirements-wheel-test.txt | 26 ++++++++------------------
 1 file changed, 8 insertions(+), 18 deletions(-)

diff --git a/python/requirements-wheel-test.txt 
b/python/requirements-wheel-test.txt
index 46bedc13ba..c7ff63e339 100644
--- a/python/requirements-wheel-test.txt
+++ b/python/requirements-wheel-test.txt
@@ -5,22 +5,12 @@ pytest
 pytz
 tzdata; sys_platform == 'win32'
 
-numpy==1.21.3; platform_system == "Linux"   and platform_machine == "aarch64" 
and python_version < "3.11"
-numpy==1.23.4;                                                                 
   python_version == "3.11"
-numpy==1.26.0;                                                                 
   python_version >= "3.12"
-numpy==1.19.5; platform_system == "Linux"   and platform_machine != "aarch64" 
and python_version <  "3.9"
-numpy==1.21.3; platform_system == "Linux"   and platform_machine != "aarch64" 
and python_version >= "3.9" and python_version < "3.11"
-numpy==1.21.3; platform_system == "Darwin"  and platform_machine == "arm64"   
and python_version <  "3.11"
-numpy==1.19.5; platform_system == "Darwin"  and platform_machine != "arm64"   
and python_version <  "3.9"
-numpy==1.21.3; platform_system == "Darwin"  and platform_machine != "arm64"   
and python_version >= "3.9" and python_version < "3.11"
-numpy==1.19.5; platform_system == "Windows"                                   
and python_version <  "3.9"
-numpy==1.21.3; platform_system == "Windows"                                   
and python_version >= "3.9" and python_version < "3.11"
+# We generally test with the oldest numpy version that supports a given Python
+# version. However, there is no need to make this strictly the oldest version,
+# so it can be broadened to have a single version specification across 
platforms.
+# (`~=x.y.z` specifies a compatible release as `>=x.y.z, == x.y.*`)
+numpy~=1.21.3; python_version < "3.11"
+numpy~=1.23.2; python_version == "3.11"
+numpy~=1.26.0; python_version == "3.12"
 
-pandas<1.1.0;  platform_system == "Linux"   and platform_machine != "aarch64" 
and python_version <  "3.8"
-pandas;        platform_system == "Linux"   and platform_machine != "aarch64" 
and python_version >= "3.8"
-pandas;        platform_system == "Linux"   and platform_machine == "aarch64"
-pandas<1.1.0;  platform_system == "Darwin"  and platform_machine != "arm64"   
and python_version <  "3.8"
-pandas;        platform_system == "Darwin"  and platform_machine != "arm64"   
and python_version >= "3.8"
-pandas;        platform_system == "Darwin"  and platform_machine == "arm64"
-pandas<1.1.0;  platform_system == "Windows"                                   
and python_version <  "3.8"
-pandas;        platform_system == "Windows"                                   
and python_version >= "3.8"
+pandas

Reply via email to