Skip to content

Commit bcced16

Browse files
committed
Use Python 3.11 by default in Makefile
An option to change the Pythom version using the PYTHON_VERSION parameter in the make command was also added.
1 parent 26e5fc1 commit bcced16

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ PACKAGE_NAME=plone.volto
2525
PACKAGE_PATH=src/
2626
CHECK_PATH=setup.py $(PACKAGE_PATH)
2727

28+
# We use Python 3.11 by default. You can use another version by specifying the
29+
# PYTHON_VERSION parameter in make command. For example:
30+
# make build PYTHON_VERSION=3
31+
PYTHON_VERSION=3.11
32+
33+
PYTHON_VERSOIN ?=
34+
2835
all: build
2936

3037
# Add the following 'help' target to your Makefile
@@ -35,7 +42,7 @@ help: ## This help message
3542

3643
bin/pip:
3744
@echo "$(GREEN)==> Setup Virtual Env$(RESET)"
38-
python3 -m venv .
45+
python$(PYTHON_VERSION) -m venv .
3946
bin/pip install -U pip wheel
4047

4148
bin/black bin/isort bin/pyroma bin/zpretty: bin/pip

news/132.internal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Force Python 3.11 in Makefile. @wesleybl

0 commit comments

Comments
 (0)