From de8a63752427b4aa4e89934d7186949a76fc6b58 Mon Sep 17 00:00:00 2001 From: Vitaly Terentyev Date: Mon, 29 Sep 2025 17:03:28 +0400 Subject: [PATCH 1/3] Add Python 3.13 --- .github/workflows/update_python_dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_python_dependencies.yml b/.github/workflows/update_python_dependencies.yml index d45aa2a08c91..3fe87bf639fd 100644 --- a/.github/workflows/update_python_dependencies.yml +++ b/.github/workflows/update_python_dependencies.yml @@ -60,10 +60,11 @@ jobs: 3.10 3.11 3.12 + 3.13 java-version: default go-version: default disable-cache: true - + - name: Update Python Dependencies uses: ./.github/actions/gradle-command-self-hosted-action with: From 7a815d458f4384b920e4b5144a90e686bed59d3d Mon Sep 17 00:00:00 2001 From: Vitaly Terentyev Date: Mon, 29 Sep 2025 17:36:55 +0400 Subject: [PATCH 2/3] Add Python 3.13 to supported versions --- .../setup-default-test-properties/test-properties.json | 8 ++++---- local-env-setup.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-default-test-properties/test-properties.json b/.github/actions/setup-default-test-properties/test-properties.json index 6439492ba5a2..ffe1cac01127 100644 --- a/.github/actions/setup-default-test-properties/test-properties.json +++ b/.github/actions/setup-default-test-properties/test-properties.json @@ -1,12 +1,12 @@ { "PythonTestProperties": { - "ALL_SUPPORTED_VERSIONS": ["3.9", "3.10", "3.11", "3.12"], + "ALL_SUPPORTED_VERSIONS": ["3.9", "3.10", "3.11", "3.12", "3.13"], "LOWEST_SUPPORTED": ["3.9"], - "HIGHEST_SUPPORTED": ["3.12"], + "HIGHEST_SUPPORTED": ["3.13"], "ESSENTIAL_VERSIONS": ["3.9", "3.12"], - "CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS": ["3.9", "3.12"], + "CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS": ["3.9", "3.12", "3.13"], "CROSS_LANGUAGE_VALIDATES_RUNNER_DATAFLOW_USING_SQL_PYTHON_VERSIONS": ["3.11"], - "VALIDATES_CONTAINER_DATAFLOW_PYTHON_VERSIONS": ["3.9", "3.10", "3.11", "3.12"], + "VALIDATES_CONTAINER_DATAFLOW_PYTHON_VERSIONS": ["3.9", "3.10", "3.11", "3.12", "3.13"], "LOAD_TEST_PYTHON_VERSION": "3.9", "CHICAGO_TAXI_EXAMPLE_FLINK_PYTHON_VERSION": "3.9", "DEFAULT_INTERPRETER": "python3.9", diff --git a/local-env-setup.sh b/local-env-setup.sh index b75cf14f22c4..1cefa2990e21 100755 --- a/local-env-setup.sh +++ b/local-env-setup.sh @@ -55,7 +55,7 @@ if [ "$kernelname" = "Linux" ]; then exit fi - for ver in 3.9 3.10 3.11 3.12 3; do + for ver in 3.9 3.10 3.11 3.12 3.13 3; do apt install --yes python$ver-venv done @@ -89,7 +89,7 @@ elif [ "$kernelname" = "Darwin" ]; then echo "Installing openjdk@8" brew install openjdk@8 fi - for ver in 3.9 3.10 3.11 3.12; do + for ver in 3.9 3.10 3.11 3.12 3.13; do if brew ls --versions python@$ver > /dev/null; then echo "python@$ver already installed. Skipping" brew info python@$ver From 881de9ba98a243a50075e696901e436227519b3c Mon Sep 17 00:00:00 2001 From: Vitaly Terentyev Date: Mon, 29 Sep 2025 20:14:36 +0400 Subject: [PATCH 3/3] Update tensorflow version for Python 3.13 --- sdks/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/python/setup.py b/sdks/python/setup.py index c23d69225d52..6cca5ff35c03 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -587,7 +587,7 @@ def get_portability_package_data(): # For more info, see # https://docs.google.com/document/d/1c84Gc-cZRCfrU8f7kWGsNR2o8oSRjCM-dGHO9KvPWPw/edit?usp=sharing 'torch': ['torch>=1.9.0,<2.8.0'], - 'tensorflow': ['tensorflow>=2.12rc1,<2.17'], + 'tensorflow': ['tensorflow>=2.12rc1,<2.21'], 'transformers': [ 'transformers>=4.28.0,<4.56.0', 'tensorflow>=2.12.0',