From cebd69c7806630b41b7aa0de35cde87f3a1fe723 Mon Sep 17 00:00:00 2001 From: dnviti Date: Sun, 19 Oct 2025 14:22:17 +0200 Subject: [PATCH] fix: Update all pipelines to Python 3.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python 3.13 is causing installation errors in CI/CD runners. Upgrading to Python 3.14 which is the latest stable version. Changes: - pyproject.toml: Update python requirement to ^3.14 - pyproject.toml: Update MyPy python_version to 3.14 - pyproject.toml: Update Black target-version to py314 - .gitlab-ci.yml: Update PYTHON_VERSION to 3.14 - .github/workflows/build-deploy.yml: Update PYTHON_VERSION to 3.14 - .gitea/workflows/ci.yml: Update PYTHON_VERSION to 3.14 This fixes the CI/CD error: "rm: cannot remove '/opt/hostedtoolcache/Python/3.13.9/x64/lib/python3.13/__pycache__': Directory not empty" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/ci.yml | 2 +- .github/workflows/build-deploy.yml | 2 +- .gitlab-ci.yml | 2 +- pyproject.toml | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 09013e8..8f3c5a7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,7 +12,7 @@ on: env: POETRY_VERSION: 1.8.0 - PYTHON_VERSION: "3.13" + PYTHON_VERSION: "3.14" REGISTRY: ${{ vars.PACKAGES_REGISTRY }} IMAGE_NAME: ${{ gitea.repository }} diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 2fc45a2..c4f90f2 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -26,7 +26,7 @@ on: env: DOCKER_REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}/docs-server - PYTHON_VERSION: '3.13' + PYTHON_VERSION: '3.14' jobs: # Job 1: Linting e validazione diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36d43b9..4e5a81c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ stages: variables: POETRY_VERSION: "1.8.0" - PYTHON_VERSION: "3.13" + PYTHON_VERSION: "3.14" DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "/certs" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" diff --git a/pyproject.toml b/pyproject.toml index b268754..d84274a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ readme = "README.md" packages = [{include = "datacenter_docs", from = "src"}] [tool.poetry.dependencies] -python = "^3.13" +python = "^3.14" # Web Framework fastapi = "^0.115.0" @@ -100,7 +100,7 @@ build-backend = "poetry.core.masonry.api" [tool.black] line-length = 100 -target-version = ['py313'] +target-version = ['py314'] include = '\.pyi?$' [tool.ruff] @@ -115,7 +115,7 @@ ignore = ["E501"] "src/datacenter_docs/api/main_enhanced.py" = ["F821"] [tool.mypy] -python_version = "3.13" +python_version = "3.14" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true