replace python 3.11 with 3.12

This commit is contained in:
Changaco 2023-11-14 14:52:48 +01:00
parent 51fb15f99c
commit f99e19d58e
4 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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

View File

@ -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):

View File

@ -1,5 +1,5 @@
[tox]
envlist = py311,py312
envlist = py312
skipsdist = True
[testenv]