jiangxb1987 commented on a change in pull request #26306: [SPARK-29646][BUILD]
Allow pyspark version name format `${versionNumber}-preview` in release script
URL: https://github.com/apache/spark/pull/26306#discussion_r340785744
##########
File path: dev/create-release/release-build.sh
##########
@@ -219,7 +219,7 @@ if [[ "$1" == "package" ]]; then
# Write out the VERSION to PySpark version info we rewrite the - into a .
and SNAPSHOT
# to dev0 to be closer to PEP440.
- PYSPARK_VERSION=`echo "$SPARK_VERSION" | sed -r "s/-/./" | sed -r
"s/SNAPSHOT/dev0/"`
+ PYSPARK_VERSION=`echo "$SPARK_VERSION" | sed -r "s/-/./" | sed -r
"s/SNAPSHOT/dev0/" | sed -r "s/preview/dev0/"`
Review comment:
I tested locally and it generates:
```
-rw-r--r-- 1 ubuntu ubuntu 218128015 Oct 30 05:16 pyspark-3.0.0.dev0.tar.gz
-rw-r--r-- 1 ubuntu ubuntu 833 Oct 30 05:16
pyspark-3.0.0.dev0.tar.gz.asc
-rw-r--r-- 1 ubuntu ubuntu 225 Oct 30 05:16
pyspark-3.0.0.dev0.tar.gz.sha512
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]