Skip to content

Commit b5f084f

Browse files
committed
chore: downgrade to python3.11
1 parent b115d2c commit b5f084f

14 files changed

+17
-16
lines changed

.github/actions/merge-branch/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inputs:
2222
type: string
2323

2424
python-version:
25-
description: "The version of Python to use, such as 3.12"
25+
description: "The version of Python to use, such as 3.11"
2626
required: true
2727
type: string
2828

.github/actions/tests/python/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ branding:
88
color: "orange"
99
inputs:
1010
python-version:
11-
description: "The version of Python to use, such as 3.12"
11+
description: "The version of Python to use, such as 3.11"
1212
required: true
1313
type: string
1414

.github/workflows/precommitVersionBumps.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Set up Python
5252
uses: actions/setup-python@v5
5353
with:
54-
python-version: "3.12"
54+
python-version: "3.11"
5555

5656
- name: locate site-packages path
5757
shell: bash

.github/workflows/pullRequestController.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ on:
5050
- "./terraform/python/**"
5151

5252
env:
53-
python-version: "3.12"
53+
python-version: "3.11"
5454

5555
jobs:
5656
check_for_pending_release:

.github/workflows/semanticVersionBump.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
restore-keys: |
4040
${{ runner.os }}-node
4141
42-
- name: Set up Python 3.12
42+
- name: Set up Python 3.11
4343
uses: actions/setup-python@v5
4444
with:
45-
python-version: "3.12"
45+
python-version: "3.11"
4646

4747
- name: Setup Node.js environment
4848
uses: actions/setup-node@v4

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- "**.py"
1414

1515
env:
16-
python-version: "3.12"
16+
python-version: "3.11"
1717

1818
jobs:
1919
python-unit-tests:

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
default_language_version:
22
# default language version for each language
3-
python: python3.12
3+
python: python3.11
44
repos:
55
- repo: https://github.com/pre-commit/mirrors-prettier
66
rev: v4.0.0-alpha.8

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ifeq ($(OS),Windows_NT)
33
PYTHON = python.exe
44
ACTIVATE_VENV = venv\Scripts\activate
55
else
6-
PYTHON = python3.12
6+
PYTHON = python3.11
77
ACTIVATE_VENV = source venv/bin/activate
88
endif
99
PIP = $(PYTHON) -m pip

doc/json/info_endpoint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
"aws_rekognition_max_faces_count": 10,
333333
"debug_mode": true,
334334
"lambda_memory_size": 256,
335-
"lambda_python_runtime": "python3.12",
335+
"lambda_python_runtime": "python3.11",
336336
"lambda_timeout": 60,
337337
"log_retention_days": 3,
338338
"logging_level": "INFO",

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ codespell==2.3.0
1919

2020
# project dependencies
2121
# ------------
22+
setuptools
2223
boto3>=1.35.71
2324
botocore>=1.35.76
2425
python-dotenv==1.0.1

terraform/python/rekognition_layer/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# ------------------------------------------------------
44

55
# Stage 1: Build dependencies for x86_64
6-
FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.12
6+
FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.11
77

88
WORKDIR /var/task
99

1010
COPY requirements.txt .
1111

1212
RUN yum install -y zip
13-
RUN pip install -r requirements.txt --target python/lib/python3.12/site-packages
13+
RUN pip install -r requirements.txt --target python/lib/python3.11/site-packages

terraform/terraform.tfvars

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ shared_resource_identifier = "rekognition"
2424
###############################################################################
2525
# Lambda parameters
2626
###############################################################################
27-
lambda_python_runtime = "python3.12"
27+
lambda_python_runtime = "python3.11"
2828
debug_mode = true
2929
lambda_memory_size = 256
3030
lambda_timeout = 60

terraform/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ variable "throttle_settings_rate_limit" {
112112

113113
variable "lambda_python_runtime" {
114114
type = string
115-
default = "python3.12"
115+
default = "python3.11"
116116
}
117117
variable "lambda_memory_size" {
118118
description = "Lambda function memory allocations in Mb"

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# setup a basic tox environment for flake8 with the default python3.11
22
# environment
33
[tox]
4-
envlist = py3.12,flake8
4+
envlist = py3.11,flake8
55
skip_missing_interpreters = true
66

77
[tool.isort]
@@ -14,7 +14,7 @@ python =
1414
3.9: gitlint,py39,flake8
1515
3.10: gitlint,py310,flake8
1616
3.11: gitlint,py311,flake8,mypy,black,pylint
17-
3.12: gitlint,py312,flake8,mypy,black,pylint
17+
3.11: gitlint,py312,flake8,mypy,black,pylint
1818

1919
[testenv]
2020
deps = -rrequirements.txt

0 commit comments

Comments
 (0)