Skip to content

Commit 5b1e8ea

Browse files
committed
[BEAM-9372][BEAM-7372] Clean release script and correct naming pattern for 3.8 and newer wheels.
1 parent 989c873 commit 5b1e8ea

9 files changed

+17
-20
lines changed

release/src/main/python-release/python_release_automation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
source release/src/main/python-release/run_release_candidate_python_quickstart.sh
2020
source release/src/main/python-release/run_release_candidate_python_mobile_gaming.sh
2121

22-
for version in 2.7 3.5 3.6 3.7 3.8
22+
for version in 3.6 3.7 3.8
2323
do
2424
run_release_candidate_python_quickstart "tar" "python${version}"
2525
run_release_candidate_python_mobile_gaming "tar" "python${version}"

release/src/main/python-release/python_release_automation_utils.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,18 @@ function get_version() {
7878
# BEAM_PYTHON_SDK*
7979
# Arguments:
8080
# $1 - SDK type: tar, wheel
81-
# $2 - python interpreter version: python2.7, python3.5, ...
81+
# $2 - python interpreter version: python3.7, python3.8, ...
8282
#######################################
8383
function download_files() {
8484
if [[ $1 = *"wheel"* ]]; then
85-
if [[ $2 == "python2.7" ]]; then
86-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp27-cp27mu-manylinux1_x86_64.whl"
87-
elif [[ $2 == "python3.5" ]]; then
88-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp35-cp35m-manylinux1_x86_64.whl"
89-
elif [[ $2 == "python3.6" ]]; then
85+
if [[ $2 == "python3.6" ]]; then
9086
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp36-cp36m-manylinux1_x86_64.whl"
9187
elif [[ $2 == "python3.7" ]]; then
9288
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp37-cp37m-manylinux1_x86_64.whl"
9389
elif [[ $2 == "python3.8" ]]; then
94-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp38-cp38m-manylinux1_x86_64.whl"
90+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp38-cp38-manylinux1_x86_64.whl"
9591
elif [[ $2 == "python3.9" ]]; then
96-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp39-cp39m-manylinux1_x86_64.whl"
92+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp39-cp39-manylinux1_x86_64.whl"
9793
else
9894
echo "Unable to determine a Beam wheel for interpreter version $2."
9995
exit 1
@@ -157,7 +153,7 @@ function get_asc_name() {
157153
# BEAM_PYTHON_SDK
158154
# Arguments:
159155
# $1 - SDK type: tar, wheel
160-
# $2 - python interpreter version: [python2.7, python3.5, ...]
156+
# $2 - python interpreter version: [python3.7, python3.8, ...]
161157
#######################################
162158
function install_sdk() {
163159
sdk_file=$(get_sdk_name $1)

release/src/main/python-release/run_release_candidate_python_mobile_gaming.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function verify_hourlyteamscore_dataflow() {
147147
# VERSION
148148
# Arguments:
149149
# $1 - sdk types: [tar, wheel]
150-
# $2 - python interpreter version: [python2.7, python3.5, ...]
150+
# $2 - python interpreter version: [python3.7, python3.8, ...]
151151
#######################################
152152
function run_release_candidate_python_mobile_gaming() {
153153
print_separator "Start Mobile Gaming Examples"

release/src/main/python-release/run_release_candidate_python_quickstart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function verify_streaming_wordcount_dataflow() {
215215
# VERSION
216216
# Arguments:
217217
# $1 - sdk types: [tar, wheel]
218-
# $2 - python interpreter version: [python2.7, python3.5, ...]
218+
# $2 - python interpreter version: [python3.7, python3.8, ...]
219219
#######################################
220220
function run_release_candidate_python_quickstart(){
221221
print_separator "Start Quickstarts Examples"

release/src/main/scripts/build_release_candidate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ WEBSITE_ROOT_DIR=beam-site
4949
DOCKER_IMAGE_DEFAULT_REPO_ROOT=apache
5050
DOCKER_IMAGE_DEFAULT_REPO_PREFIX=beam_
5151

52-
PYTHON_VER=("python2.7" "python3.5" "python3.6" "python3.7" "python3.8")
52+
PYTHON_VER=("python3.6" "python3.7" "python3.8")
5353
FLINK_VER=("1.8" "1.9" "1.10")
5454

5555
echo "================Setting Up Environment Variables==========="

release/src/main/scripts/download_github_actions_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def get_yes_or_no_answer(question):
110110
elif reply == "n":
111111
return False
112112
else:
113-
return get_yes_or_no_answer("Uhhhh... please enter")
113+
return get_yes_or_no_answer("Please enter")
114114

115115

116116
def get_build_wheels_workflow_id(repo_url, github_token):

release/src/main/scripts/mass_comment.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
"Run Python Spark ValidatesRunner",
4242
"Run Python Dataflow ValidatesContainer",
4343
"Run Python Dataflow ValidatesRunner",
44-
"Run Python 3.5 Flink ValidatesRunner",
44+
"Run Python Flink ValidatesRunner",
4545
"Run Twister2 ValidatesRunner",
46-
"Run Python 2 PostCommit",
47-
"Run Python 3.5 PostCommit",
4846
"Run Python 3.6 PostCommit",
4947
"Run Python 3.7 PostCommit",
5048
"Run Python 3.8 PostCommit",
@@ -56,7 +54,10 @@
5654
"Run Portable_Python PreCommit",
5755
"Run PythonLint PreCommit",
5856
"Run Python PreCommit",
59-
"Run Python DockerBuild PreCommit"
57+
"Run Python DockerBuild PreCommit",
58+
"Run XVR_Direct PostCommit",
59+
"Run XVR_Flink PostCommit",
60+
"Run XVR_Spark PostCommit",
6061
]
6162

6263

release/src/main/scripts/publish_docker_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set -e
2727
DOCKER_IMAGE_DEFAULT_REPO_ROOT=apache
2828
DOCKER_IMAGE_DEFAULT_REPO_PREFIX=beam_
2929

30-
PYTHON_VER=("python2.7" "python3.5" "python3.6" "python3.7" "python3.8")
30+
PYTHON_VER=("python3.6" "python3.7" "python3.8")
3131
FLINK_VER=("1.8" "1.9" "1.10")
3232

3333
echo "Publish SDK docker images to Docker Hub."

release/src/main/scripts/run_rc_validation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ HUB_VERSION=2.12.0
6666
HUB_ARTIFACTS_NAME=hub-linux-amd64-${HUB_VERSION}
6767
BACKUP_BASHRC=.bashrc_backup_$(date +"%Y%m%d%H%M%S")
6868
BACKUP_M2=settings_backup_$(date +"%Y%m%d%H%M%S").xml
69-
declare -a PYTHON_VERSIONS_TO_VALIDATE=("python2.7" "python3.5")
69+
declare -a PYTHON_VERSIONS_TO_VALIDATE=("python3.6" "python3.8")
7070

7171
echo ""
7272
echo "====================Checking Environment & Variables================="

0 commit comments

Comments
 (0)