-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-29646][BUILD] Allow pyspark version name format ${versionNumber}-preview in release script
#26306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. Thank you, @jiangxb1987 .
|
Test build #112884 has finished for PR 26306 at commit
|
dev/create-release/release-build.sh
Outdated
| # 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/"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. @jiangxb1987 .
This is used here.
PYTHON_DIST_NAME=pyspark-$PYSPARK_VERSION.tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will generate pyspark-3.0.0.tar.gz instead of pyspark-3.0.0-preview.tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC it would be pyspark-3.0.0.dev0.tar.gz which is expected ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyspark-3.0.0-preview.tar.gz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for tarball name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: How about using -e instead of using multiple sed commands if we have a change to update further.
https://unix.stackexchange.com/questions/33157/what-is-the-purpose-of-e-in-sed-command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kiszk updated, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, are you going to rename them manually before uploading for Apache Spark VOTE, @jiangxb1987 ? Or, do you want to use that pyspark-3.0.0.dev0.tar.gz directly?
|
Retest this please |
|
retest this please |
|
Maybe, I was confused the context. Are we going to publish this to |
|
@dongjoon-hyun As we previously discussed (#26243 (comment)), we can release pyspark's tarball, but not push to pip. As for the name, I think |
|
Dumb question: is 3.0.0.dev0 the more 'conventional' version number for a preview-like release in Python? then yeah it's fine. It's just the naming of the tarball, really. |
|
Test build #112948 has finished for PR 26306 at commit
|
I'm not able to directly give an answer, but according to the comment in |
|
Test build #112956 has finished for PR 26306 at commit
|
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it~ Thanks, @jiangxb1987 .
|
Merged to master! |
|
Thanks @dongjoon-hyun @srowen @HyukjinKwon @kiszk @cloud-fan ! |
What changes were proposed in this pull request?
Update
release-build.sh, to allow pyspark version name format${versionNumber}-preview, otherwise the release script won't generate pyspark release tarballs.How was this patch tested?
Tested locally.