From 6972afd854395355d55899b8bead391406107188 Mon Sep 17 00:00:00 2001 From: warre Date: Sat, 5 Jul 2025 18:32:15 +0200 Subject: [PATCH] Raise minimum supported python version to 3.9 --- .github/workflows/ci-python.yml | 2 +- .github/workflows/publish-layer-collector.yml | 2 +- collector/Makefile | 4 ++-- python/sample-apps/template.yml | 1 - python/src/template.yml | 1 - python/src/tox.ini | 4 ++-- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index b76c3c688d..a8e82d80ae 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -31,7 +31,7 @@ jobs: matrix: # If you add a python version here, please make sure that the collector/Makefile publish and publish-layer targets # get updated as well - python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout this repo diff --git a/.github/workflows/publish-layer-collector.yml b/.github/workflows/publish-layer-collector.yml index 4b8cd9656d..29e492076a 100644 --- a/.github/workflows/publish-layer-collector.yml +++ b/.github/workflows/publish-layer-collector.yml @@ -128,7 +128,7 @@ jobs: artifact-name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip layer-name: opentelemetry-collector architecture: ${{ matrix.architecture }} - runtimes: "nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 java17 java21 python3.8 python3.9 python3.10 python3.11 python3.12 python3.13" + runtimes: "nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 java17 java21 python3.9 python3.10 python3.11 python3.12 python3.13" release-group: prod aws_region: ${{ matrix.aws_region }} role-arn: ${{ github.event.inputs.role-arn }} diff --git a/collector/Makefile b/collector/Makefile index 1bd09f3f6d..fbdb929f00 100644 --- a/collector/Makefile +++ b/collector/Makefile @@ -47,12 +47,12 @@ package: build .PHONY: publish publish: - aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 java17 java21 python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 --query 'LayerVersionArn' --output text + aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 java17 java21 python3.9 python3.10 python3.11 python3.12 python3.13 --query 'LayerVersionArn' --output text .PHONY: publish-layer publish-layer: package @echo Publishing collector extension layer... - aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 java17 java21 python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 --query 'LayerVersionArn' --output text + aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 java17 java21 python3.9 python3.10 python3.11 python3.12 python3.13 --query 'LayerVersionArn' --output text @echo OpenTelemetry Collector layer published. .PHONY: set-otelcol-version diff --git a/python/sample-apps/template.yml b/python/sample-apps/template.yml index e4c6007689..f162eda09e 100644 --- a/python/sample-apps/template.yml +++ b/python/sample-apps/template.yml @@ -42,7 +42,6 @@ Resources: Description: Opentelemetry Python layer ContentUri: ./otel CompatibleRuntimes: - - python3.8 - python3.9 - python3.10 - python3.11 diff --git a/python/src/template.yml b/python/src/template.yml index 14c3efc939..499eb85c93 100644 --- a/python/src/template.yml +++ b/python/src/template.yml @@ -14,7 +14,6 @@ Resources: Description: Opentelemetry Python layer ContentUri: ./otel CompatibleRuntimes: - - python3.8 - python3.9 - python3.10 - python3.11 diff --git a/python/src/tox.ini b/python/src/tox.ini index 6714863739..53466f50d6 100644 --- a/python/src/tox.ini +++ b/python/src/tox.ini @@ -1,9 +1,9 @@ [tox] envlist = ; opentelemetry-instrumentation-aws-lambda - py3{8,9,10,11,12}-test-instrumentation-aws-lambda + py3{9,10,11,12}-test-instrumentation-aws-lambda -minversion = 3.8 +minversion = 3.9 skip_missing_interpreters = True