Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
Use Python 3.11 by default in Makefile and add option to change this version using the PYTHON_VERSION parameter in make command. @wesleybl