Skip to content

Commit 6da403d

Browse files
JacobCoffeeclaude
andauthored
chore: migrate project to Python 3.13 (#116)
Co-authored-by: Claude <[email protected]>
1 parent 8be1bc5 commit 6da403d

File tree

22 files changed

+76
-503
lines changed

22 files changed

+76
-503
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v6
2222
with:
23-
python-version-file: "pyproject.toml"
23+
python-version-file: ".python-version"
2424

2525
- name: Create virtual environment
2626
run: uv sync --all-extras --dev
@@ -62,7 +62,7 @@ jobs:
6262
- name: Set up Python
6363
uses: actions/setup-python@v6
6464
with:
65-
python-version-file: "pyproject.toml"
65+
python-version-file: ".python-version"
6666

6767
- name: Create virtual environment
6868
run: uv sync --all-extras --dev
@@ -92,7 +92,7 @@ jobs:
9292
- name: Set up Python
9393
uses: actions/setup-python@v6
9494
with:
95-
python-version-file: "pyproject.toml"
95+
python-version-file: ".python-version"
9696

9797
- name: Create virtual environment
9898
run: uv sync --all-extras --dev

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: astral-sh/setup-uv@v3
2525

2626
- name: Set up Python
27-
run: uv python install 3.12
27+
run: uv python install 3.13
2828

2929
- name: Install dependencies
3030
run: uv sync --all-extras --dev

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: "3.12"
2+
python: "3.13"
33
default_install_hook_types: [commit-msg, pre-commit]
44
repos:
55
- repo: https://github.com/compilerla/conventional-pre-commit

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12
1+
3.13

.sourcery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rule_settings:
1515
- refactoring
1616
- suggestion
1717
- comment
18-
python_version: "3.12"
18+
python_version: "3.13"
1919

2020
rules: []
2121

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python 3.12
1+
python 3.13

packages/byte-common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The package will include:
1919

2020
## Technology Stack
2121

22-
- Python 3.12+
22+
- Python 3.13+
2323
- Pydantic for models
2424
- Pydantic Settings for configuration
2525
- Advanced Alchemy for database models

packages/byte-common/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"githubkit[auth-app] @ git+https://github.com/yanyongyu/githubkit.git",
1414
"python-dotenv>=1.0.0",
1515
]
16-
requires-python = ">=3.12,<4.0"
16+
requires-python = ">=3.13,<4.0"
1717
readme = "README.md"
1818
license = { text = "MIT" }
1919

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ strict-imports = false
125125
[tool.ruff]
126126
line-length = 120
127127
src = ["packages/byte-common/src", "services/api/src", "services/bot/src", "tests"]
128-
target-version = "py311"
128+
target-version = "py313"
129129

130130
[tool.ruff.lint]
131131
select = ["ALL"]

services/api/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ============================================================================
44
# Builder Stage: Install dependencies and build virtual environment
55
# ============================================================================
6-
FROM python:3.12-slim AS builder
6+
FROM python:3.13-slim AS builder
77

88
# Set working directory
99
WORKDIR /app
@@ -38,7 +38,7 @@ RUN uv sync --frozen --no-dev --no-editable
3838
# ============================================================================
3939
# Runtime Stage: Minimal production image
4040
# ============================================================================
41-
FROM python:3.12-slim
41+
FROM python:3.13-slim
4242

4343
# Set working directory
4444
WORKDIR /app

0 commit comments

Comments
 (0)