Skip to content

Commit

Permalink
Use Python 3.11 by default in Makefile
Browse files Browse the repository at this point in the history
An option to change the Pythom version using the PYTHON_VERSION
parameter in the make command was also added.
  • Loading branch information
wesleybl committed Nov 7, 2023
1 parent 26e5fc1 commit bcced16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ PACKAGE_NAME=plone.volto
PACKAGE_PATH=src/
CHECK_PATH=setup.py $(PACKAGE_PATH)

# We use Python 3.11 by default. You can use another version by specifying the
# PYTHON_VERSION parameter in make command. For example:
# make build PYTHON_VERSION=3
PYTHON_VERSION=3.11

PYTHON_VERSOIN ?=

all: build

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

bin/pip:
@echo "$(GREEN)==> Setup Virtual Env$(RESET)"
python3 -m venv .
python$(PYTHON_VERSION) -m venv .
bin/pip install -U pip wheel

bin/black bin/isort bin/pyroma bin/zpretty: bin/pip
Expand Down
1 change: 1 addition & 0 deletions news/132.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Force Python 3.11 in Makefile. @wesleybl

0 comments on commit bcced16

Please sign in to comment.