Skip to content

Commit

Permalink
upgrade python to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels committed Nov 13, 2024
1 parent 42ded1e commit fa672a3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.10@sha256:ef9cc483a593c95e1e83f2cf00b6a0e1ec7df43344416a41ccb3a88aef27beac
FROM mcr.microsoft.com/vscode/devcontainers/python:1-3.12

ENV POETRY_VERSION="1.7.1"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:

steps:
- uses: actions/checkout@main
- name: docker://python:3.10
uses: docker://python:3.10 # utils is currently 3.10 so we need to use 3.10 in ci
- name: docker://python:3.12
uses: docker://python:3.12 # utils is currently 3.12 so we need to use 3.12 in ci

- name: Install poetry
env:
Expand All @@ -22,7 +22,7 @@ jobs:
working-directory: ${{ github.workspace }}
shell: bash
run: |
mkdir -p "${{ github.workspace }}/env/" && cp -fR $(poetry env list | poetry env info -p)/lib/python3.10/site-packages "${{ github.workspace }}/env/"
mkdir -p "${{ github.workspace }}/env/" && cp -fR $(poetry env list | poetry env info -p)/lib/python3.12/site-packages "${{ github.workspace }}/env/"
- name: Bootstrap and run tests
working-directory: ${{ github.workspace }}
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.10
python_version = 3.12
check_untyped_defs = True
exclude = venv|build|site-packages

Expand Down
47 changes: 2 additions & 45 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requires = ["poetry-core>=1.3.2"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.dependencies]
python = "~3.10.9"
python = "~3.12.7"
# required by both api and admin
awscli = "1.33.35"
bleach = "6.1.0"
Expand Down

0 comments on commit fa672a3

Please sign in to comment.