Skip to content

Commit 6d5b984

Browse files
authored
Fix Python 3.13 workflows (#36416)
* Add py313 docker task * Update pandas for py313 * Register postCommitPyDep task for py313 * Update scikit-learn version
1 parent 9076b1a commit 6d5b984

7 files changed

Lines changed: 8 additions & 4 deletions

File tree

buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3307,6 +3307,7 @@ class BeamModulePlugin implements Plugin<Project> {
33073307
':sdks:python:container:py310:docker',
33083308
':sdks:python:container:py311:docker',
33093309
':sdks:python:container:py312:docker',
3310+
':sdks:python:container:py313:docker',
33103311
]
33113312
doLast {
33123313
// TODO: Figure out GCS credentials and use real GCS input and output.

sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
REQUIREMENTS = [
3232
"apache-beam[gcp]==2.41.0",
3333
"hdbscan==0.8.28",
34-
"scikit-learn==1.5.0",
34+
"scikit-learn==1.7.1",
3535
"transformers==4.36.0",
3636
"torch==1.13.1",
3737
"pandas==1.3.5",

sdks/python/apache_beam/examples/inference/sklearn_examples_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
# However, newer sklearn is needed for testing on newer Python version
2121
scikit-learn==1.0.2; python_version < '3.11'
2222
# bump sklearn version when new Python version is supported
23-
scikit-learn==1.3.1; python_version >= '3.11'
23+
scikit-learn==1.7.1; python_version >= '3.11'

sdks/python/container/ml/py313/ml_image_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ oracledb==3.3.0
155155
orjson==3.11.3
156156
overrides==7.7.0
157157
packaging==25.0
158-
pandas==2.2.3
158+
pandas==2.3.3
159159
parameterized==0.9.0
160160
pg8000==1.31.5
161161
pillow==11.3.0

sdks/python/container/py313/base_image_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ oracledb==3.3.0
120120
orjson==3.11.3
121121
overrides==7.7.0
122122
packaging==25.0
123-
pandas==2.2.3
123+
pandas==2.3.3
124124
parameterized==0.9.0
125125
pg8000==1.31.5
126126
pip==25.2

sdks/python/test-suites/tox/py313/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ applyPythonNature()
2626
// Required to setup a Python 3 virtualenv and task names.
2727
pythonVersion = '3.13'
2828

29+
project.tasks.register("postCommitPyDep") {}
30+
2931
apply from: "../common.gradle"
3032

website/www/site/content/en/documentation/runtime/environments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ This method requires building image artifacts from Beam source. For additional i
121121
./gradlew :sdks:python:container:py310:docker
122122
./gradlew :sdks:python:container:py311:docker
123123
./gradlew :sdks:python:container:py312:docker
124+
./gradlew :sdks:python:container:py313:docker
124125
125126
# Shortcut for building all Python SDKs
126127
./gradlew :sdks:python:container:buildAll

0 commit comments

Comments
 (0)