Skip to content

Commit 327ea3a

Browse files
authored
feat: move the Python examples and their live tests to Python 3.15 (#847)
1 parent ca7fa81 commit 327ea3a

32 files changed

Lines changed: 68 additions & 56 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
node-version: 24
106106
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
107107
with:
108-
python-version: '3.14'
108+
python-version: '3.15'
109109
- name: Install the Serverless Framework CLI
110110
run: npm install --global serverless
111111
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0

‎.github/workflows/sweep.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
node-version: 24
129129
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
130130
with:
131-
python-version: '3.14'
131+
python-version: '3.15'
132132
- name: Install the Serverless Framework CLI
133133
run: npm install --global serverless
134134
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0

‎aws-bedrock-agentcore/python/strands-browser/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.14-slim
1+
FROM python:3.15-slim
22

33
WORKDIR /app
44

‎aws-bedrock-agentcore/python/strands-browser/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "strands-browser-agent"
33
version = "1.0.0"
44
description = "Strands agent with AgentCore Browser for web automation"
5-
requires-python = ">=3.14"
5+
requires-python = ">=3.15"
66

77
dependencies = [
88
"bedrock-agentcore>=1.3.0",

‎aws-multiple-runtime/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ authorAvatar: 'https://avatars0.githubusercontent.com/u/527924?v=4&s=140'
1212
-->
1313
# Multiple Runtimes Example
1414

15-
This example demonstrates how you can run multiple runtimes (Node.js and Python) side by side in the same Serverless Framework service. The `time` function runs on `nodejs24.x` and returns the current Unix timestamp; the `hello` function runs on `python3.14`, calls the `time` endpoint over HTTP, and renders a greeting with the formatted date.
15+
This example demonstrates how you can run multiple runtimes (Node.js and Python) side by side in the same Serverless Framework service. The `time` function runs on `nodejs24.x` and returns the current Unix timestamp; the `hello` function runs on `python3.15`, calls the `time` endpoint over HTTP, and renders a greeting with the formatted date.
1616

1717
## Deploy
1818

‎aws-multiple-runtime/serverless.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ provider:
88

99
functions:
1010
hello:
11-
runtime: python3.14
11+
runtime: python3.15
1212
events:
1313
- httpApi:
1414
method: get

‎aws-python-alexa-skill/serverless.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ frameworkVersion: '4'
44

55
provider:
66
name: aws
7-
runtime: python3.14
7+
runtime: python3.15
88
architecture: arm64
99

1010
functions:

‎aws-python-auth0-custom-authorizers-api/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Custom Authorizers allow you to run an AWS Lambda Function before your targeted
2323

2424
## Setup
2525

26-
1. You must have Python 3.14! Third-party dependencies (`PyJWT`, `cryptography`) are bundled automatically at
26+
1. You must have Python 3.15! Third-party dependencies (`PyJWT`, `cryptography`) are bundled automatically at
2727
deploy time by the Framework's built-in Python requirements packaging (configured under
2828
`custom.pythonRequirements` in `serverless.yml`) — no plugin needed. Run `npm install` once to pull in
2929
`serverless-offline` for local testing.

‎aws-python-auth0-custom-authorizers-api/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"description": "Demonstration of protecting API gateway endpoints with auth0",
55
"license": "MIT",
66
"devDependencies": {
7-
"serverless-offline": "^14.7.4"
7+
"serverless-offline": "^14.8.5"
88
}
99
}

‎aws-python-auth0-custom-authorizers-api/serverless.yml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ package:
1212

1313
custom:
1414
# Built-in python requirements packaging activates on this key.
15-
# pipCmdExtraArgs forces pip to fetch Lambda-compatible (manylinux) wheels
16-
# for arm64, regardless of the host OS/architecture running the deploy.
1715
pythonRequirements:
16+
# Download Linux arm64 wheels for Python 3.15 on any machine, so compiled
17+
# dependencies (such as cryptography) match the Lambda architecture and runtime.
1818
pipCmdExtraArgs:
19-
- --platform
20-
- manylinux2014_aarch64
19+
- '--platform=manylinux2014_aarch64'
20+
- '--platform=manylinux_2_28_aarch64'
21+
- '--python-version=3.15'
2122
- '--only-binary=:all:'
2223

2324
provider:
2425
name: aws
25-
runtime: python3.14
26+
runtime: python3.15
2627
architecture: arm64
2728
region: us-east-1
2829
environment:

0 commit comments

Comments
 (0)