diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy index 80556c3a6c4f..de0a267796bf 100644 --- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy +++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy @@ -3307,6 +3307,7 @@ class BeamModulePlugin implements Plugin { ':sdks:python:container:py310:docker', ':sdks:python:container:py311:docker', ':sdks:python:container:py312:docker', + ':sdks:python:container:py313:docker', ] doLast { // TODO: Figure out GCS credentials and use real GCS input and output. diff --git a/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py b/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py index 365b6634d1a1..a415648cdf99 100644 --- a/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py +++ b/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py @@ -31,7 +31,7 @@ REQUIREMENTS = [ "apache-beam[gcp]==2.41.0", "hdbscan==0.8.28", - "scikit-learn==1.5.0", + "scikit-learn==1.7.1", "transformers==4.36.0", "torch==1.13.1", "pandas==1.3.5", diff --git a/sdks/python/apache_beam/examples/inference/sklearn_examples_requirements.txt b/sdks/python/apache_beam/examples/inference/sklearn_examples_requirements.txt index 7a75d2c04312..30dbdb2f3715 100644 --- a/sdks/python/apache_beam/examples/inference/sklearn_examples_requirements.txt +++ b/sdks/python/apache_beam/examples/inference/sklearn_examples_requirements.txt @@ -20,4 +20,4 @@ # However, newer sklearn is needed for testing on newer Python version scikit-learn==1.0.2; python_version < '3.11' # bump sklearn version when new Python version is supported -scikit-learn==1.3.1; python_version >= '3.11' +scikit-learn==1.7.1; python_version >= '3.11' diff --git a/sdks/python/container/ml/py313/ml_image_requirements.txt b/sdks/python/container/ml/py313/ml_image_requirements.txt index 960772cb9e93..ebc712ee6a70 100644 --- a/sdks/python/container/ml/py313/ml_image_requirements.txt +++ b/sdks/python/container/ml/py313/ml_image_requirements.txt @@ -155,7 +155,7 @@ oracledb==3.3.0 orjson==3.11.3 overrides==7.7.0 packaging==25.0 -pandas==2.2.3 +pandas==2.3.3 parameterized==0.9.0 pg8000==1.31.5 pillow==11.3.0 diff --git a/sdks/python/container/py313/base_image_requirements.txt b/sdks/python/container/py313/base_image_requirements.txt index 83bb7090ba75..f0e343be0721 100644 --- a/sdks/python/container/py313/base_image_requirements.txt +++ b/sdks/python/container/py313/base_image_requirements.txt @@ -120,7 +120,7 @@ oracledb==3.3.0 orjson==3.11.3 overrides==7.7.0 packaging==25.0 -pandas==2.2.3 +pandas==2.3.3 parameterized==0.9.0 pg8000==1.31.5 pip==25.2 diff --git a/sdks/python/test-suites/tox/py313/build.gradle b/sdks/python/test-suites/tox/py313/build.gradle index a8ed0059bba7..908be9146b85 100644 --- a/sdks/python/test-suites/tox/py313/build.gradle +++ b/sdks/python/test-suites/tox/py313/build.gradle @@ -26,5 +26,7 @@ applyPythonNature() // Required to setup a Python 3 virtualenv and task names. pythonVersion = '3.13' +project.tasks.register("postCommitPyDep") {} + apply from: "../common.gradle" diff --git a/website/www/site/content/en/documentation/runtime/environments.md b/website/www/site/content/en/documentation/runtime/environments.md index 262be67d1cdf..82beae16f02b 100644 --- a/website/www/site/content/en/documentation/runtime/environments.md +++ b/website/www/site/content/en/documentation/runtime/environments.md @@ -121,6 +121,7 @@ This method requires building image artifacts from Beam source. For additional i ./gradlew :sdks:python:container:py310:docker ./gradlew :sdks:python:container:py311:docker ./gradlew :sdks:python:container:py312:docker + ./gradlew :sdks:python:container:py313:docker # Shortcut for building all Python SDKs ./gradlew :sdks:python:container:buildAll