Skip to content

Commit

Permalink
Include Python 3.12 in release validation steps. (#31415)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvalentyn authored May 28, 2024
1 parent 944273f commit bb4c1e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions release/src/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ RUN apt-get update && \
RUN apt-get install -y build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev llvm \
libncurses5-dev libncursesw5-dev xz-utils tk-dev \
libffi-dev liblzma-dev python3-openssl
libffi-dev liblzma-dev python3-openssl

# Install pyenv and install all of the Python versions
# Install pyenv and install all of the Python versions
# needed to build containers
RUN curl https://pyenv.run | bash && \
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /root/.bashrc && \
Expand All @@ -46,7 +46,8 @@ RUN curl https://pyenv.run | bash && \
pyenv install 3.9.4 && \
pyenv install 3.10.7 && \
pyenv install 3.11.3 && \
pyenv global 3.8.9 3.9.4 3.10.7 3.11.3
pyenv install 3.12.3 && \
pyenv global 3.8.9 3.9.4 3.10.7 3.11.3 3.12.3

# Install a Go version >= 1.16 so we can bootstrap higher
# Go versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
source release/src/main/python-release/run_release_candidate_python_quickstart.sh
source release/src/main/python-release/run_release_candidate_python_mobile_gaming.sh

for version in 3.8 3.9 3.10 3.11
for version in 3.8 3.9 3.10 3.11 3.12
do
run_release_candidate_python_quickstart "tar" "python${version}"
run_release_candidate_python_mobile_gaming "tar" "python${version}"
Expand Down
2 changes: 1 addition & 1 deletion release/src/main/scripts/build_release_candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ if [[ $confirmation = "y" ]]; then
cd ${BEAM_ROOT_DIR}
RELEASE_COMMIT=$(git rev-list -n 1 "tags/${RC_TAG}")
# TODO(/~https://github.com/apache/beam/issues/20209): Don't hardcode py version in this file.
cd sdks/python && tox -e py38-docs
cd sdks/python && tox -e docs
GENERATED_PYDOC=~/${LOCAL_WEBSITE_UPDATE_DIR}/${LOCAL_PYTHON_DOC}/${BEAM_ROOT_DIR}/sdks/python/target/docs/_build
rm -rf ${GENERATED_PYDOC}/.doctrees

Expand Down

0 comments on commit bb4c1e6

Please sign in to comment.