From 131d5265eb9371b05f0c2fd2139fe1daa21c97e4 Mon Sep 17 00:00:00 2001 From: Abhijit Gupta Date: Thu, 23 Nov 2023 15:08:56 -0500 Subject: [PATCH] Update to Python 3.11 (#234) --- backend/.pre-commit-config.yaml | 2 +- backend/deploy/Dockerfile | 2 +- backend/deploy/app.yaml | 2 +- docs/CONTRIBUTING.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/.pre-commit-config.yaml b/backend/.pre-commit-config.yaml index 6a458f6b..74a849ac 100644 --- a/backend/.pre-commit-config.yaml +++ b/backend/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: 21.10b0 hooks: - id: black - language_version: python3.8 + language_version: python3.11 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: diff --git a/backend/deploy/Dockerfile b/backend/deploy/Dockerfile index 11821bd1..73d40a66 100644 --- a/backend/deploy/Dockerfile +++ b/backend/deploy/Dockerfile @@ -1,4 +1,4 @@ -FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8 +FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11 ENV APP_MODULE=src.main:app ENV PORT=8000 diff --git a/backend/deploy/app.yaml b/backend/deploy/app.yaml index 6e7bbb95..90af05d0 100644 --- a/backend/deploy/app.yaml +++ b/backend/deploy/app.yaml @@ -1,5 +1,5 @@ service: default -runtime: python38 +runtime: python311 entrypoint: gunicorn -w 2 -k uvicorn.workers.UvicornWorker src.main:app #smallest instance class diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 7ef39177..aecb9615 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -14,7 +14,7 @@ docker-compose up --build -d ### Manual -With Python3.8, install the dependencies from `backend/requirements.txt` and run on two separate terminal windows +With Python3.11, install the dependencies from `backend/requirements.txt` and run on two separate terminal windows ``` yarn start-sub