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

dongjoon pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 2e747d69d4e1 [SPARK-54277][INFRA] Make `dev/run-tests` to ban `Python 
3.9` and older versions
2e747d69d4e1 is described below

commit 2e747d69d4e11b43f53dc8f7328640d69fe1a7d3
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Nov 10 08:55:11 2025 -0800

    [SPARK-54277][INFRA] Make `dev/run-tests` to ban `Python 3.9` and older 
versions
    
    ### What changes were proposed in this pull request?
    
    This PR aims to make `dev/run-tests` to ban Python 3.9 and older versions.
    
    ### Why are the changes needed?
    
    This will prevent users from running Python 3.9 and older versions for 
testing.
    
    ```
    $ python3 --version
    Python 3.9.22
    
    $ ./python/run-tests --python-executable python3
    Python versions prior to 3.10 are not supported.
    ```
    
    ### Does this PR introduce _any_ user-facing change?
    
    No behavior change because this is a test change.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #52974 from dongjoon-hyun/SPARK-54277.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit acfedacd564bdd9a7c0113d1521e1e9bc633420c)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 dev/run-tests | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/run-tests b/dev/run-tests
index 91a1532a338b..6067caf210eb 100755
--- a/dev/run-tests
+++ b/dev/run-tests
@@ -20,9 +20,9 @@
 FWDIR="$(cd "`dirname $0`"/..; pwd)"
 cd "$FWDIR"
 
-PYTHON_VERSION_CHECK=$(python3 -c 'import sys; print(sys.version_info < (3, 8, 
0))')
+PYTHON_VERSION_CHECK=$(python3 -c 'import sys; print(sys.version_info < (3, 
10, 0))')
 if [[ "$PYTHON_VERSION_CHECK" == "True" ]]; then
-  echo "Python versions prior to 3.8 are not supported."
+  echo "Python versions prior to 3.10 are not supported."
   exit -1
 fi
 


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

Reply via email to