Skip to content

Commit

Permalink
Update to Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed Oct 8, 2024
1 parent fb9d40a commit b6b60a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 37 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-slim-bookworm
FROM python:3.13-slim-bookworm

# Install system dependencies
RUN apt-get update \
Expand All @@ -17,7 +17,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
ENV UV_LINK_MODE=copy \
UV_COMPILE_BYTECODE=1 \
UV_PYTHON_DOWNLOADS=never \
UV_PYTHON=python3.12
UV_PYTHON=python3.13

# Create directory for the datatbase
RUN mkdir -p /app/db
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ default:
@just --list

# Set the Python version
python_version := "3.12"
python_version := "3.13"

# Set the uv run command
uv := "uv run --python 3.12 --extra test"
uv := "uv run --python 3.13 --extra test"

#Set the uv command to run a tool
uv-tool := "uv tool run"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stuartm-nz"
version = "0.1.0"
description = "stuartm.nz"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.13"
dependencies = [
"django-environ>=0.11.2",
"django~=5.1.0",
Expand Down Expand Up @@ -36,7 +36,7 @@ ignore = [
]
line-length = 120

target-version = "py312"
target-version = "py313"

[tool.ruff.per-file-ignores]
"test*" = ["ALL"]
Expand Down
32 changes: 1 addition & 31 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b6b60a0

Please sign in to comment.