Skip to content

Commit

Permalink
feat: Add Python 3.12 runtime
Browse files Browse the repository at this point in the history
Signed-off-by: Gábor Lipták <[email protected]>
  • Loading branch information
gliptak committed Oct 31, 2024
1 parent 9a80ceb commit b2297b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: Checkout this repo
Expand Down
4 changes: 2 additions & 2 deletions collector/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 --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 nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 python3.12 --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 nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 --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 nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 python3.12 --query 'LayerVersionArn' --output text
@echo OpenTelemetry Collector layer published.

.PHONY: set-otelcol-version
Expand Down
1 change: 1 addition & 0 deletions python/sample-apps/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ Resources:
- python3.9
- python3.10
- python3.11
- python3.12
Metadata:
BuildMethod: makefile
2 changes: 1 addition & 1 deletion python/src/otel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG runtime=python3.11
ARG runtime=python3.12

FROM public.ecr.aws/sam/build-${runtime}

Expand Down
1 change: 1 addition & 0 deletions python/src/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Resources:
- python3.9
- python3.10
- python3.11
- python3.12
Metadata:
BuildMethod: makefile

0 comments on commit b2297b3

Please sign in to comment.