Skip to content
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

[SPARK-47849][PYTHON][CONNECT] Change release script to release pyspark-connect #46049

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ if [[ "$1" == "finalize" ]]; then
--repository-url https://upload.pypi.org/legacy/ \
"pyspark-$RELEASE_VERSION.tar.gz" \
"pyspark-$RELEASE_VERSION.tar.gz.asc"
svn update "pyspark-connect-$RELEASE_VERSION.tar.gz"
svn update "pyspark-connect-$RELEASE_VERSION.tar.gz.asc"
TWINE_USERNAME=spark-upload TWINE_PASSWORD="$PYPI_PASSWORD" twine upload \
--repository-url https://upload.pypi.org/legacy/ \
"pyspark-connect-$RELEASE_VERSION.tar.gz" \
"pyspark-connect-$RELEASE_VERSION.tar.gz.asc"
cd ..
rm -rf svn-spark
echo "PySpark uploaded"
Expand Down Expand Up @@ -302,6 +308,14 @@ if [[ "$1" == "package" ]]; then
--output $PYTHON_DIST_NAME.asc \
--detach-sig $PYTHON_DIST_NAME
shasum -a 512 $PYTHON_DIST_NAME > $PYTHON_DIST_NAME.sha512

PYTHON_CONNECT_DIST_NAME=pyspark-connect-$PYSPARK_VERSION.tar.gz
cp spark-$SPARK_VERSION-bin-$NAME/python/dist/$PYTHON_CONNECT_DIST_NAME .

echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \
--output $PYTHON_CONNECT_DIST_NAME.asc \
--detach-sig $PYTHON_CONNECT_DIST_NAME
shasum -a 512 $PYTHON_CONNECT_DIST_NAME > $PYTHON_CONNECT_DIST_NAME.sha512
fi

echo "Copying and signing regular binary distribution"
Expand Down
1 change: 1 addition & 0 deletions dev/make-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ if [ "$MAKE_PIP" == "true" ]; then
# Delete the egg info file if it exists, this can cache older setup files.
rm -rf pyspark.egg-info || echo "No existing egg info file, skipping deletion"
python3 packaging/classic/setup.py sdist
python3 packaging/connect/setup.py sdist
popd > /dev/null
else
echo "Skipping building python distribution package"
Expand Down