Skip to content

Commit 96b031e

Browse files
authored
enable python 3.13 (#13)
1 parent 3ba218d commit 96b031e

File tree

4 files changed

+27
-133
lines changed

4 files changed

+27
-133
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
20-
- uses: actions/setup-python@v4
21-
with:
22-
python-version: "3.12"
20+
- uses: astral-sh/setup-uv@v3
21+
- run: uv python install 3.12
2322
- run: |
24-
curl -LsSf https://astral.sh/uv/install.sh | sh
2523
uv sync --all-extras --frozen --no-install-project
2624
uv run ruff format . --check
2725
uv run ruff check . --no-fix
@@ -46,11 +44,9 @@ jobs:
4644
--health-retries 5
4745
steps:
4846
- uses: actions/checkout@v3
49-
- uses: actions/setup-python@v4
50-
with:
51-
python-version: "3.12"
47+
- uses: astral-sh/setup-uv@v3
48+
- run: uv python install 3.13
5249
- run: |
53-
curl -LsSf https://astral.sh/uv/install.sh | sh
5450
uv sync --all-extras --frozen --no-install-project
5551
uv run alembic upgrade head
5652
uv run pytest . --cov=. --cov-report xml

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim
1+
FROM python:3.13-slim
22

33
# required for psycopg2
44
RUN apt update \
@@ -19,7 +19,7 @@ WORKDIR /code
1919
COPY pyproject.toml .
2020
COPY uv.lock .
2121

22-
RUN uv sync --frozen --no-install-project
22+
RUN uv sync --all-extras --frozen --no-install-project
2323

2424
COPY . .
2525

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "litestar-sqlalchemy-template"
33
version = "0"
44
description = "Async template on LiteStar and SQLAlchemy 2"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.13"
77
authors = [
88
{ name = "Artur Shiriev", email = "[email protected]" },
99
]
@@ -17,7 +17,7 @@ dependencies = [
1717
# database
1818
"alembic",
1919
"psycopg2",
20-
"sqlalchemy",
20+
"sqlalchemy[asyncio]",
2121
"asyncpg",
2222
]
2323

@@ -37,7 +37,7 @@ dev = [
3737
fix = true
3838
unsafe-fixes = true
3939
line-length = 120
40-
target-version = "py312"
40+
target-version = "py313"
4141
extend-exclude = ["bin"]
4242

4343
[tool.ruff.lint]
@@ -64,7 +64,7 @@ isort.no-lines-before = ["standard-library", "local-folder"]
6464
]
6565

6666
[tool.mypy]
67-
python_version = "3.12"
67+
python_version = "3.13"
6868
strict = true
6969
pretty = true
7070

0 commit comments

Comments
 (0)