Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(🎁) switch to python 3.12 #489

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
rev: 23.9.1
hooks:
- id: black
language_version: python3.11
language_version: python3.12

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
Expand Down
2 changes: 1 addition & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-alpine
FROM python:3.12-alpine

ENV PYTHONUNBUFFERED 1

Expand Down
2 changes: 1 addition & 1 deletion app/Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY ./frontend/ /app/
RUN npm run build


FROM python:3.11-alpine
FROM python:3.12-alpine

ENV PYTHONUNBUFFERED 1

Expand Down
4 changes: 2 additions & 2 deletions app/config.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
debug = "1"
enable-prometheus = "1"

default-python-version = "3.11"
python-versions = ["3.9", "3.10", "3.11"]
default-python-version = "3.12"
python-versions = ["3.9", "3.10", "3.11", "3.12"]
mypy-versions = [
["mypy latest", "latest"],
["basedmypy latest", "basedmypy-latest"],
Expand Down
2 changes: 1 addition & 1 deletion app/mypy_playground/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
define(
"default_python_version",
type=str,
default="3.11",
default="3.12",
help="Default Python version",
)
define(
Expand Down
2 changes: 1 addition & 1 deletion app/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.mypy]
python_version = '3.11'
python_version = '3.12'
strict = true

[[tool.mypy.overrides]]
Expand Down
1 change: 1 addition & 0 deletions app/requirements.dev.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-c requirements.txt
mypy
pip-tools
pytest
pytest-cov
pytest-mock
Expand Down
17 changes: 15 additions & 2 deletions app/requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile requirements.dev.in
#
build==1.0.3
# via pip-tools
click==8.1.7
# via pip-tools
coverage[toml]==7.2.7
# via pytest-cov
iniconfig==2.0.0
Expand All @@ -13,9 +17,15 @@ mypy==1.4.1
mypy-extensions==1.0.0
# via mypy
packaging==23.1
# via pytest
# via
# build
# pytest
pip-tools==7.3.0
# via -r requirements.dev.in
pluggy==1.2.0
# via pytest
pyproject-hooks==1.0.0
# via build
pytest==7.4.0
# via
# -r requirements.dev.in
Expand Down Expand Up @@ -47,6 +57,9 @@ typing-extensions==4.7.0
# via
# -c requirements.txt
# mypy
wheel==0.41.2
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
4 changes: 2 additions & 2 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile
Expand All @@ -20,7 +20,7 @@ charset-normalizer==3.1.0
# via requests
dataclasses==0.6
# via -r requirements.in
frozenlist==1.3.3
frozenlist==1.4.1
# via
# aiohttp
# aiosignal
Expand Down
2 changes: 1 addition & 1 deletion app/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skipsdist = true

[gh-actions]
python =
3.11: mypy, pre-commit, py311
3.12: mypy, pre-commit, py312

[testenv]
deps =
Expand Down