This is an automated email from the ASF dual-hosted git repository.
dongjoon 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 acfedacd564b [SPARK-54277][INFRA] Make `dev/run-tests` to ban `Python
3.9` and older versions
acfedacd564b is described below
commit acfedacd564bdd9a7c0113d1521e1e9bc633420c
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]>
---
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]