Skip to content

Commit

Permalink
TG-1012 Upgrade to Python 3.12 (#250)
Browse files Browse the repository at this point in the history
Co-authored-by: Paolo Melchiorre <[email protected]>
  • Loading branch information
niccolomineo and pauloxnet authored Jan 10, 2024
1 parent 9364b0c commit 927da27
Show file tree
Hide file tree
Showing 9 changed files with 1,044 additions and 932 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install -r requirements/test.txt
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_language_version:
python: python3.11
python: python3.12
exclude: ^(\{\{cookiecutter\.project_dirname\}\}.*)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -30,7 +30,7 @@ repos:
rev: "v3.3.1"
hooks:
- id: pyupgrade
args: [--py311-plus]
args: [--py312-plus]
- repo: https://github.com/psf/black
rev: "23.1.0"
hooks:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim-bullseye AS base
FROM python:3.12-slim-bookworm AS base

ARG DEBIAN_FRONTEND=noninteractive
ARG OUTPUT_BASE_DIR=/data
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Disabled args

#### Kubernetes cluster CA certificate

`--kubernetes-cluster-ca-certificate={{absolute-path-to-certificarte}}`
`--kubernetes-cluster-ca-certificate={{absolute-path-to-certificate}}`

#### Kubernetes host

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
target-version = ["py311"]
target-version = ["py312"]

[tool.coverage.html]
title = "Talos - Coverage"
Expand All @@ -22,7 +22,7 @@ enable_error_code = [
"truthy-bool",
]
ignore_missing_imports = true
python_version = "3.11"
python_version = "3.12"

[tool.ruff]
extend-exclude = [
Expand Down Expand Up @@ -50,7 +50,7 @@ python_version = "3.11"
"E501",
]
select = ["B", "C", "D", "E", "F", "I", "W", "B9"]
target-version = "py311"
target-version = "py312"

[tool.ruff.isort]
combine-as-imports = true
Expand Down
2 changes: 1 addition & 1 deletion requirements/common.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
click~=8.1.0
cookiecutter~=2.1.0
cookiecutter~=2.5.0
pydantic~=1.10.0
python-slugify~=8.0.0
validators~=0.20.0
546 changes: 291 additions & 255 deletions requirements/common.txt

Large diffs are not rendered by default.

771 changes: 405 additions & 366 deletions requirements/local.txt

Large diffs are not rendered by default.

635 changes: 336 additions & 299 deletions requirements/test.txt

Large diffs are not rendered by default.

0 comments on commit 927da27

Please sign in to comment.