From 5874cdc64d6cfd093c509f7b6a05c3f453231029 Mon Sep 17 00:00:00 2001 From: Iman Shafiei Date: Mon, 31 Mar 2025 14:39:58 -0700 Subject: [PATCH 1/2] Add Python 3.12 support to build workflows and templates --- .github/workflows/main-build-python.yml | 2 +- adot/python/src/template.yml | 1 + python/integration-tests/aws-sdk/wrapper/main.tf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-build-python.yml b/.github/workflows/main-build-python.yml index 29266ff77..96505635c 100644 --- a/.github/workflows/main-build-python.yml +++ b/.github/workflows/main-build-python.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: architecture: [ amd64, arm64 ] - runtime: [python3.9, python3.10, python3.11] + runtime: [python3.9, python3.10, python3.11, python3.12] steps: - uses: actions/checkout@v4 with: diff --git a/adot/python/src/template.yml b/adot/python/src/template.yml index d42b73ff1..ac21580c0 100644 --- a/adot/python/src/template.yml +++ b/adot/python/src/template.yml @@ -18,6 +18,7 @@ Resources: - python3.9 - python3.10 - python3.11 + - python3.12 Metadata: BuildMethod: makefile api: diff --git a/python/integration-tests/aws-sdk/wrapper/main.tf b/python/integration-tests/aws-sdk/wrapper/main.tf index 21d14d556..f05e8f795 100644 --- a/python/integration-tests/aws-sdk/wrapper/main.tf +++ b/python/integration-tests/aws-sdk/wrapper/main.tf @@ -5,7 +5,7 @@ locals { resource "aws_lambda_layer_version" "sdk_layer" { layer_name = var.sdk_layer_name filename = "${path.module}/../../../../opentelemetry-lambda/python/src/build/layer.zip" - compatible_runtimes = ["python3.10", "python3.11"] + compatible_runtimes = ["python3.10", "python3.11", "python3.12"] license_info = "Apache-2.0" source_code_hash = filebase64sha256("${path.module}/../../../../opentelemetry-lambda/python/src/build/layer.zip") } From c5383864b21b9e663db460d7db238ef68cd76ee0 Mon Sep 17 00:00:00 2001 From: Iman Shafiei Date: Fri, 4 Apr 2025 10:20:30 -0700 Subject: [PATCH 2/2] Add support for Python 3.13 --- .github/workflows/main-build-python.yml | 2 +- adot/python/src/template.yml | 1 + python/integration-tests/aws-sdk/wrapper/main.tf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-build-python.yml b/.github/workflows/main-build-python.yml index 96505635c..fa7ae769e 100644 --- a/.github/workflows/main-build-python.yml +++ b/.github/workflows/main-build-python.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: architecture: [ amd64, arm64 ] - runtime: [python3.9, python3.10, python3.11, python3.12] + runtime: [python3.9, python3.10, python3.11, python3.12, python3.13] steps: - uses: actions/checkout@v4 with: diff --git a/adot/python/src/template.yml b/adot/python/src/template.yml index ac21580c0..216b32039 100644 --- a/adot/python/src/template.yml +++ b/adot/python/src/template.yml @@ -19,6 +19,7 @@ Resources: - python3.10 - python3.11 - python3.12 + - python3.13 Metadata: BuildMethod: makefile api: diff --git a/python/integration-tests/aws-sdk/wrapper/main.tf b/python/integration-tests/aws-sdk/wrapper/main.tf index f05e8f795..8d3ad1910 100644 --- a/python/integration-tests/aws-sdk/wrapper/main.tf +++ b/python/integration-tests/aws-sdk/wrapper/main.tf @@ -5,7 +5,7 @@ locals { resource "aws_lambda_layer_version" "sdk_layer" { layer_name = var.sdk_layer_name filename = "${path.module}/../../../../opentelemetry-lambda/python/src/build/layer.zip" - compatible_runtimes = ["python3.10", "python3.11", "python3.12"] + compatible_runtimes = ["python3.10", "python3.11", "python3.12", "python3.13"] license_info = "Apache-2.0" source_code_hash = filebase64sha256("${path.module}/../../../../opentelemetry-lambda/python/src/build/layer.zip") }