From f99e19d58e7579890f3e6a3d16f0e967234e20f8 Mon Sep 17 00:00:00 2001 From: Changaco Date: Tue, 14 Nov 2023 14:52:48 +0100 Subject: [PATCH] replace python 3.11 with 3.12 --- Makefile | 2 +- README.md | 2 +- cli/check-python-version.py | 4 ++-- tox.ini | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 57bbef2e5..3ab97686e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -python := "$(shell { command -v python3.11 || command -v python3 || command -v python || echo false; } 2>/dev/null)" +python := "$(shell { command -v python3.12 || command -v python3 || command -v python || echo false; } 2>/dev/null)" # Set the relative path to installed binaries under the project virtualenv. # NOTE: Creating a virtualenv on Windows places binaries in the 'Scripts' directory. diff --git a/README.md b/README.md index fbba66092..ed883d2e1 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ The python code inside simplates is only for request-specific logic, common back Make sure you have the following dependencies installed first: -- python ≥ 3.11 +- python ≥ 3.12 - including the C headers of python and libffi, which are packaged separately in many Linux distributions - postgresql 16 (see [the official download & install docs](https://www.postgresql.org/download/)) - make diff --git a/cli/check-python-version.py b/cli/check-python-version.py index abba54df3..846034bf8 100644 --- a/cli/check-python-version.py +++ b/cli/check-python-version.py @@ -1,7 +1,7 @@ import sys -if sys.version_info < (3, 11, 0): - print("Liberapay requires Python >= 3.11, but %s is version %s.%s" % +if sys.version_info < (3, 12, 0): + print("Liberapay requires Python >= 3.12, but %s is version %s.%s" % (sys.executable, sys.version_info[0], sys.version_info[1])) sys.exit(1) if sys.version_info >= (3, 13, 0): diff --git a/tox.ini b/tox.ini index 19f013500..171c7e781 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py311,py312 +envlist = py312 skipsdist = True [testenv]