Skip to content

Commit e6f6f6e

Browse files
Lucas BeloLucas Belo
authored andcommitted
Python upgrade from 3.8 to 3.11
1 parent c06f337 commit e6f6f6e

File tree

5 files changed

+37
-68
lines changed

5 files changed

+37
-68
lines changed

.github/workflows/api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
steps:
8989
- name: Checkout Code
9090
uses: actions/checkout@v3
91-
- name: Set up Python 3.9
91+
- name: Set up Python 3.11
9292
uses: actions/setup-python@v3
9393
with:
9494
python-version: ${{ matrix.python-version }}

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ You need to set AWS_DEFAULT_REGION environment variable since Boto3 requires it
2525
``` bash
2626
$ export AWS_DEFAULT_REGION=eu-west-1
2727
$ poetry run pytest tests.py
28-
```
28+
```
29+
30+
## Creating the DynamoDB and running the server locally
31+
32+
export AWS_ACCESS_KEY_ID=abc && export AWS_SECRET_ACCESS_KEY=abc && export AWS_DEFAULT_REGION=eu-west-1 && export TABLE_NAME="local-tasks-api-table" && export DYNAMODB_URL=http://localhost:9999
33+
poetry run python create_dynamodb_locally.py
34+
poetry run uvicorn main:app --reload

services/tasks_api/poetry.lock

Lines changed: 27 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/tasks_api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Lucas"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = "^3.9"
9+
python = "^3.11"
1010
fastapi = "^0.115.0"
1111
uvicorn = "^0.31.0"
1212
httpx = "^0.27.2"

services/tasks_api/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ useDotenv: true
66

77
provider:
88
name: aws
9-
runtime: python3.9
9+
runtime: python3.11
1010
region: ${opt:region, 'eu-west-1'}
1111
stage: ${opt:stage, 'development'}
1212
logRetentionInDays: 30

0 commit comments

Comments
 (0)