Skip to content

Commit

Permalink
Bump default Python version to 3.12 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage authored Jan 29, 2025
1 parent 9a2102b commit 385e14a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PYTHON_IMPLEMENTATION=python
PYTHON_VERSION=3.10
PYTHON_VERSION=3.12
MARIADB_VERSION=10.5
MYSQL_VERSION=8.0
ORACLE_VERSION=23.5.0.0
Expand Down
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.12

ARG PYTHON_IMPLEMENTATION=python
ARG PYTHON_VERSION=3.10
ARG PYTHON_VERSION=3.12
FROM ${PYTHON_IMPLEMENTATION}:${PYTHON_VERSION}-slim-bookworm

LABEL org.opencontainers.image.authors="Django Software Foundation"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ environment variables:
| ----------------------- | ------------- | ---------------------------------------------------- |
| `DJANGO_PATH` | `../django` | Path to the Django repostory on your local machine |
| `PYTHON_IMPLEMENTATION` | `python` | Implementation of Python to use — `python` or `pypy` |
| `PYTHON_VERSION` | `3.10` | Version of Python container image to use |
| `PYTHON_VERSION` | `3.12` | Version of Python container image to use |

The versions of various backend services can be switched by setting these environment variables:

Expand All @@ -212,7 +212,7 @@ The `PYTHON_VERSION` environment variable controls which version of Python you
are running the tests against, e.g.

```console
$ PYTHON_VERSION=3.10 docker compose run --rm sqlite
$ PYTHON_VERSION=3.12 docker compose run --rm sqlite
```

In addition, it's possible to select a different implementation of Python, i.e.
Expand Down

0 comments on commit 385e14a

Please sign in to comment.