Skip to content

Commit

Permalink
Merge pull request #116 from stuartmaxwell:roll_back_from_313
Browse files Browse the repository at this point in the history
Roll back to Python 3.12 for now.
  • Loading branch information
stuartmaxwell authored Oct 8, 2024
2 parents 61a40e3 + 60e1267 commit 6e54693
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 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.13-slim-bookworm
FROM python:3.12-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.13
UV_PYTHON=python3.12

# Add the backup script
COPY backup.sh /app/
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.13"
python_version := "3.12"

# Set the uv run command
uv := "uv run --python 3.13 --extra test"
uv := "uv run --python 3.12 --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.13"
requires-python = ">=3.12"
dependencies = [
"django-environ>=0.11.2",
"django~=5.1.0",
Expand Down Expand Up @@ -36,7 +36,7 @@ ignore = [
]
line-length = 120

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

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

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

0 comments on commit 6e54693

Please sign in to comment.