Skip to content

Commit 7b5c8d9

Browse files
EstrellaXDclaude
andcommitted
chore: upgrade Python version to 3.13
- Update requires-python to >=3.13 in pyproject.toml - Update ruff and black target versions to py313 - Update Dockerfile to use python:3.13-alpine - Add explicit Python 3.13 setup in CI workflow - Regenerate uv.lock for Python 3.13 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f22f5c6 commit 7b5c8d9

4 files changed

Lines changed: 10 additions & 407 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
- name: Set up Python 3.13
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.13"
1822
- uses: astral-sh/setup-uv@v4
1923
with:
2024
version: "latest"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/astral-sh/uv:0.5-python3.12-alpine AS builder
3+
FROM ghcr.io/astral-sh/uv:0.5-python3.13-alpine AS builder
44

55
WORKDIR /app
66
ENV UV_COMPILE_BYTECODE=1
@@ -14,7 +14,7 @@ RUN uv sync --frozen --no-dev
1414
COPY backend/src ./src
1515

1616

17-
FROM python:3.12-alpine AS runtime
17+
FROM python:3.13-alpine AS runtime
1818

1919
RUN apk add --no-cache \
2020
bash \

backend/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "auto-bangumi"
33
version = "3.2.0-beta.13"
44
description = "AutoBangumi - Automated anime download manager"
5-
requires-python = ">=3.10"
5+
requires-python = ">=3.13"
66
dependencies = [
77
"fastapi>=0.109.0",
88
"uvicorn>=0.27.0",
@@ -43,7 +43,7 @@ asyncio_mode = "auto"
4343

4444
[tool.ruff]
4545
line-length = 88
46-
target-version = "py310"
46+
target-version = "py313"
4747
exclude = [".venv", "venv", "build", "dist"]
4848

4949
[tool.ruff.lint]
@@ -60,4 +60,4 @@ package = false
6060

6161
[tool.black]
6262
line-length = 88
63-
target-version = ['py310', 'py311']
63+
target-version = ['py313']

0 commit comments

Comments
 (0)