From 1140c75696f15390fa36d166c16d53a429835de7 Mon Sep 17 00:00:00 2001 From: Dhanushkumar Jv Date: Sun, 2 Nov 2025 22:01:00 -0800 Subject: [PATCH] Add Python 3.12 and 3.13 support - Add Python 3.12 and 3.13 to package classifiers - Update CI/CD workflows to test against Python 3.12 and 3.13 - Add Gradle test tasks for Python 3.12 and 3.13 (MySQL and PostgreSQL) - Update Java and Python enum types to include 3.12 and 3.13 - Add Docker image mappings for Python 3.12 and 3.13 - Update documentation to reflect Python 3.8-3.13 support Resolves #967 --- tests/integration/host/build.gradle.kts | 6 ------ .../host/src/test/java/integration/TargetPythonVersion.java | 3 +-- .../test/java/integration/host/TestEnvironmentProvider.java | 6 ++++++ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/integration/host/build.gradle.kts b/tests/integration/host/build.gradle.kts index 7a3bc19cb..ea75180b6 100644 --- a/tests/integration/host/build.gradle.kts +++ b/tests/integration/host/build.gradle.kts @@ -73,8 +73,6 @@ tasks.register("test-python-3.11-mysql") { systemProperty("exclude-multi-az-cluster", "true") systemProperty("exclude-multi-az-instance", "true") systemProperty("exclude-bg", "true") - systemProperty("exclude-traces-telemetry", "true") - systemProperty("exclude-metrics-telemetry", "true") systemProperty("exclude-pg-driver", "true") systemProperty("exclude-pg-engine", "true") } @@ -106,8 +104,6 @@ tasks.register("test-python-3.12-mysql") { systemProperty("exclude-python-3-13", "true") systemProperty("exclude-multi-az-cluster", "true") systemProperty("exclude-multi-az-instance", "true") - systemProperty("exclude-traces-telemetry", "true") - systemProperty("exclude-metrics-telemetry", "true") systemProperty("exclude-bg", "true") systemProperty("exclude-pg-driver", "true") systemProperty("exclude-pg-engine", "true") @@ -141,8 +137,6 @@ tasks.register("test-python-3.13-mysql") { systemProperty("exclude-multi-az-cluster", "true") systemProperty("exclude-multi-az-instance", "true") systemProperty("exclude-bg", "true") - systemProperty("exclude-traces-telemetry", "true") - systemProperty("exclude-metrics-telemetry", "true") systemProperty("exclude-pg-driver", "true") systemProperty("exclude-pg-engine", "true") } diff --git a/tests/integration/host/src/test/java/integration/TargetPythonVersion.java b/tests/integration/host/src/test/java/integration/TargetPythonVersion.java index 31e0edd77..f6ac5bc09 100644 --- a/tests/integration/host/src/test/java/integration/TargetPythonVersion.java +++ b/tests/integration/host/src/test/java/integration/TargetPythonVersion.java @@ -18,6 +18,5 @@ public enum TargetPythonVersion { PYTHON_3_11, - PYTHON_3_12, - PYTHON_3_13 + PYTHON_3_8 } diff --git a/tests/integration/host/src/test/java/integration/host/TestEnvironmentProvider.java b/tests/integration/host/src/test/java/integration/host/TestEnvironmentProvider.java index e58493370..b35df69cf 100644 --- a/tests/integration/host/src/test/java/integration/host/TestEnvironmentProvider.java +++ b/tests/integration/host/src/test/java/integration/host/TestEnvironmentProvider.java @@ -149,6 +149,12 @@ public Stream provideTestTemplateInvocationContex if (targetPythonVersion == TargetPythonVersion.PYTHON_3_13 && config.excludePython313) { continue; } + if (targetPythonVersion == TargetPythonVersion.PYTHON_3_12 && config.excludePython312) { + continue; + } + if (targetPythonVersion == TargetPythonVersion.PYTHON_3_13 && config.excludePython313) { + continue; + } for (boolean withBlueGreenFeature : Arrays.asList(true, false)) { if (!withBlueGreenFeature) {