From 74397bfbdea9930350b176ac8accb872ec04f76f Mon Sep 17 00:00:00 2001 From: Tarun Menon <64295670+tarunmenon95@users.noreply.github.com> Date: Tue, 7 May 2024 16:37:10 +1000 Subject: [PATCH] Feature/python3.11 (#149) * bump python to 3.11 * bump workflows to use python 3.11 --- .github/workflows/publish-to-pypi.yml | 2 +- .github/workflows/publish-to-test-pypi.yml | 2 +- Dockerfile | 2 +- serverless.yml | 4 ++-- template.yaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 4af5888..a70ebd5 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.9' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 3290da5..3809438 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.9' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/Dockerfile b/Dockerfile index 894e7f3..2e3467e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9 +FROM python:3.11 COPY requirements.txt requirements.txt diff --git a/serverless.yml b/serverless.yml index 62807ec..1e40622 100644 --- a/serverless.yml +++ b/serverless.yml @@ -3,7 +3,7 @@ service: provider: name: aws - runtime: python3.8 + runtime: python3.11 iamRoleStatements: # read only ec2, rds - Effect: Allow @@ -96,7 +96,7 @@ functions: shelvery: handler: shelvery_lambda/lambda_handler.lambda_handler name: shelvery - runtime: python3.8 + runtime: python3.11 timeout: 300 events: diff --git a/template.yaml b/template.yaml index f5853f5..315c038 100644 --- a/template.yaml +++ b/template.yaml @@ -111,7 +111,7 @@ Resources: Properties: FunctionName: ShelveryBackups Handler: shelvery_lambda/lambda_handler.lambda_handler - Runtime: python3.8 + Runtime: python3.11 CodeUri: ./lib Timeout: 900