Skip to content

Commit 4909121

Browse files
committed
Drop support for deprecated python versions
1 parent 1960e7e commit 4909121

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ repos:
33
rev: 19.3b0
44
hooks:
55
- id: black
6-
language_version: python3.6
6+
language_version: python3.9
77
exclude_types: ['markdown', 'ini', 'toml', 'rst']

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ We have open-sourced a set of software packages, Runtime Interface Clients (RIC)
55
base images to be Lambda compatible.
66
The Lambda Runtime Interface Client is a lightweight interface that allows your runtime to receive requests from and send requests to the Lambda service.
77

8-
The Lambda Python Runtime Interface Client is vended through [pip](https://pypi.org/project/awslambdaric).
8+
The Lambda Python Runtime Interface Client is vended through [pip](https://pypi.org/project/awslambdaric).
99
You can include this package in your preferred base image to make that base image Lambda compatible.
1010

1111
## Requirements
1212
The Python Runtime Interface Client package currently supports Python versions:
13-
- 3.7.x up to and including 3.13.x
13+
- 3.9.x up to and including 3.13.x
1414

1515
## Usage
1616

@@ -103,18 +103,18 @@ def handler(event, context):
103103

104104
### Local Testing
105105

106-
To make it easy to locally test Lambda functions packaged as container images we open-sourced a lightweight web-server, Lambda Runtime Interface Emulator (RIE), which allows your function packaged as a container image to accept HTTP requests. You can install the [AWS Lambda Runtime Interface Emulator](https://github.com/aws/aws-lambda-runtime-interface-emulator) on your local machine to test your function. Then when you run the image function, you set the entrypoint to be the emulator.
106+
To make it easy to locally test Lambda functions packaged as container images we open-sourced a lightweight web-server, Lambda Runtime Interface Emulator (RIE), which allows your function packaged as a container image to accept HTTP requests. You can install the [AWS Lambda Runtime Interface Emulator](https://github.com/aws/aws-lambda-runtime-interface-emulator) on your local machine to test your function. Then when you run the image function, you set the entrypoint to be the emulator.
107107

108108
*To install the emulator and test your Lambda function*
109109

110-
1) From your project directory, run the following command to download the RIE from GitHub and install it on your local machine.
110+
1) From your project directory, run the following command to download the RIE from GitHub and install it on your local machine.
111111

112112
```shell script
113113
mkdir -p ~/.aws-lambda-rie && \
114114
curl -Lo ~/.aws-lambda-rie/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie && \
115115
chmod +x ~/.aws-lambda-rie/aws-lambda-rie
116116
```
117-
2) Run your Lambda image function using the docker run command.
117+
2) Run your Lambda image function using the docker run command.
118118

119119
```shell script
120120
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 \
@@ -123,9 +123,9 @@ docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 \
123123
/usr/local/bin/python -m awslambdaric app.handler
124124
```
125125

126-
This runs the image as a container and starts up an endpoint locally at `http://localhost:9000/2015-03-31/functions/function/invocations`.
126+
This runs the image as a container and starts up an endpoint locally at `http://localhost:9000/2015-03-31/functions/function/invocations`.
127127

128-
3) Post an event to the following endpoint using a curl command:
128+
3) Post an event to the following endpoint using a curl command:
129129

130130
```shell script
131131
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
@@ -174,4 +174,4 @@ If you discover a potential security issue in this project we ask that you notif
174174

175175
## License
176176

177-
This project is licensed under the Apache-2.0 License.
177+
This project is licensed under the Apache-2.0 License.

RELEASE.CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
### November 18, 2024
1+
### November 19, 2024
22
`3.0.0`
3+
- Drop support for deprecated python versions ([#179](https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/179))
34
- Add support for snapstart runtime hooks ([#176](https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/176))
45

56
### August 23, 2024

setup.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ def read_requirements(req="base.txt"):
8484
"Intended Audience :: Developers",
8585
"Natural Language :: English",
8686
"Programming Language :: Python :: 3",
87-
"Programming Language :: Python :: 3.6",
88-
"Programming Language :: Python :: 3.7",
89-
"Programming Language :: Python :: 3.8",
9087
"Programming Language :: Python :: 3.9",
9188
"Programming Language :: Python :: 3.10",
9289
"Programming Language :: Python :: 3.11",
@@ -95,7 +92,7 @@ def read_requirements(req="base.txt"):
9592
"License :: OSI Approved :: Apache Software License",
9693
"Operating System :: OS Independent",
9794
],
98-
python_requires=">=3.6",
95+
python_requires=">=3.9",
9996
ext_modules=get_runtime_client_extension(),
10097
test_suite="tests",
10198
)

0 commit comments

Comments
 (0)