From 9d38f2e6bdd46ce6a143adac494f64717b6b3f33 Mon Sep 17 00:00:00 2001 From: Maxime Bonin Date: Sat, 24 May 2025 14:29:12 -0400 Subject: [PATCH 1/2] Update Python version to 3.11 in configuration files and templates --- .python-version | 2 +- Pipfile | 2 +- Pipfile.lock | 44 ++++++++++++++++++++++-------------------- template.yml | 2 +- terraform/variables.tf | 2 +- 5 files changed, 27 insertions(+), 25 deletions(-) diff --git a/.python-version b/.python-version index c8cfe39..2c07333 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.10 +3.11 diff --git a/Pipfile b/Pipfile index 5ff90da..59679e4 100644 --- a/Pipfile +++ b/Pipfile @@ -15,7 +15,7 @@ black = "*" tomli = "*" [requires] -python_version = "3.10" +python_version = "3.11" [scripts] test = "pytest test/ -v" diff --git a/Pipfile.lock b/Pipfile.lock index 138b90d..ded6109 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "7f283141db090d8a49c55b6d088fdefc1c5777b41c9fb6fc1946726749f14790" + "sha256": "599034e116f96b76b5c83ce3869ed82864ffab29bdb0067ba6f4d492f2316dc9" }, "pipfile-spec": 6, "requires": { - "python_version": "3.10" + "python_version": "3.11" }, "sources": [ { @@ -18,19 +18,20 @@ "default": { "boto3": { "hashes": [ - "sha256:5970b62c1ec8177501e02520f0d41839ca5fc549b30bac4e8c0c0882ae776217", - "sha256:670f811c65e3c5fe4ed8c8d69be0b44b1d649e992c0fc16de43816d1188f88f1" + "sha256:70ab8364f1f6f0a7e0eaf97f62fbdacf9c1e4cc1de330faf1c146ef9ab01e7d0", + "sha256:bcf73aca469add09e165b8793be18e7578db8d2604d82505ab13dc2495bad982" ], "index": "pypi", - "version": "==1.35.39" + "markers": "python_version >= '3.9'", + "version": "==1.38.23" }, "botocore": { "hashes": [ - "sha256:781c547eb6a79c0e4b0bedd87b81fbfed957816b4841d33e20c8f1989c7c19ce", - "sha256:cb7f851933b5ccc2fba4f0a8b846252410aa0efac5bfbe93b82d10801f5f8e90" + "sha256:29685c91050a870c3809238dc5da1ac65a48a3a20b4bca46b6057dcb6b39c72a", + "sha256:a7f818672f10d7a080c2c4558428011c3e0abc1039a047d27ac76ec846158457" ], - "markers": "python_version >= '3.8'", - "version": "==1.35.39" + "markers": "python_version >= '3.9'", + "version": "==1.38.23" }, "jmespath": { "hashes": [ @@ -45,32 +46,33 @@ "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==2.9.0.post0" }, "s3transfer": { "hashes": [ - "sha256:263ed587a5803c6c708d3ce44dc4dfedaab4c1a32e8329bab818933d79ddcf5d", - "sha256:4f50ed74ab84d474ce614475e0b8d5047ff080810aac5d01ea25231cfc944b0c" + "sha256:0148ef34d6dd964d0d8cf4311b2b21c474693e57c2e069ec708ce043d2b527be", + "sha256:f5e6db74eb7776a37208001113ea7aa97695368242b364d73e91c981ac522177" ], - "markers": "python_version >= '3.8'", - "version": "==0.10.3" + "markers": "python_version >= '3.9'", + "version": "==0.13.0" }, "six": { "hashes": [ - "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", - "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" + "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", + "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", - "version": "==1.16.0" + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", + "version": "==1.17.0" }, "urllib3": { "hashes": [ - "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac", - "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9" + "sha256:414bc6535b787febd7567804cc015fee39daab8ad86268f1310a9250697de466", + "sha256:4e16665048960a0900c702d4a66415956a584919c03361cac9f1df5c5dd7e813" ], "index": "pypi", - "version": "==2.2.3" + "markers": "python_version >= '3.9'", + "version": "==2.4.0" } }, "develop": { diff --git a/template.yml b/template.yml index c37dfe7..380984c 100644 --- a/template.yml +++ b/template.yml @@ -25,7 +25,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambda_handler - Runtime: python3.10 + Runtime: python3.11 Timeout: 5 Architectures: - x86_64 diff --git a/terraform/variables.tf b/terraform/variables.tf index ae48a1b..a3e93e4 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -17,7 +17,7 @@ variable "region" { variable "python_runtime" { type = string - default = "python3.10" + default = "python3.11" description = "runtime on which lambda python code will run" } From c5545e1b9fc68d9b398a2773b9fae95b63fe4e4a Mon Sep 17 00:00:00 2001 From: Maxime Bonin Date: Sat, 24 May 2025 14:32:02 -0400 Subject: [PATCH 2/2] Update Python version to 3.11 in GitHub Actions workflows --- .github/workflows/pytest.yml | 2 +- .github/workflows/terraform.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5f4f9fc..ca11f47 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.11" - name: Install pipenv run: | diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index ef60e51..8db17e8 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.11" - name: Install Lambda (Python) dependencies run: |