You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/05/25 01:29:47 UTC
[spark] branch branch-3.0 updated: [SPARK-31807][INFRA] Use python
3 style in release-build.sh
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 40e5de5 [SPARK-31807][INFRA] Use python 3 style in release-build.sh
40e5de5 is described below
commit 40e5de54e6109762d3ee85197da4fa1a8b20e13b
Author: William Hyun <wi...@gmail.com>
AuthorDate: Mon May 25 10:25:43 2020 +0900
[SPARK-31807][INFRA] Use python 3 style in release-build.sh
### What changes were proposed in this pull request?
This PR aims to use the style that is compatible with both python 2 and 3.
### Why are the changes needed?
This will help python 3 migration.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual.
Closes #28632 from williamhyun/use_python3_style.
Authored-by: William Hyun <wi...@gmail.com>
Signed-off-by: HyukjinKwon <gu...@apache.org>
(cherry picked from commit 753636e86b1989a9b43ec691de5136a70d11f323)
Signed-off-by: HyukjinKwon <gu...@apache.org>
---
dev/create-release/release-build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh
index 655b079..e3bcb72 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -380,7 +380,7 @@ if [[ "$1" == "publish-snapshot" ]]; then
echo "</server></servers></settings>" >> $tmp_settings
# Generate random point for Zinc
- export ZINC_PORT=$(python -S -c "import random; print random.randrange(3030,4030)")
+ export ZINC_PORT=$(python -S -c "import random; print(random.randrange(3030,4030))")
$MVN -DzincPort=$ZINC_PORT --settings $tmp_settings -DskipTests $SCALA_2_12_PROFILES $PUBLISH_PROFILES deploy
@@ -412,7 +412,7 @@ if [[ "$1" == "publish-release" ]]; then
tmp_repo=$(mktemp -d spark-repo-XXXXX)
# Generate random point for Zinc
- export ZINC_PORT=$(python -S -c "import random; print random.randrange(3030,4030)")
+ export ZINC_PORT=$(python -S -c "import random; print(random.randrange(3030,4030))")
# TODO: revisit for Scala 2.13 support
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org