ID: 969aec8159da0349f43f0ec50f4050d57ff8906b
44 lines
—
847B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/Pylons/webtest.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/pylons-webtest
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.9:
export PYENV_VERSION=3.9
python3 -m venv venv
venv-3.8:
export PYENV_VERSION=3.8
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
3.0.0: check_env_vars venv-3.9 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .[docs]
cd docs
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
2.0.35: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .[docs]
cd docs
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|