ID: 1022a252ef7aafafaf5a9e262b17a4f47ca7038a
54 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/jd/tenacity.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/python-tenacity
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
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
8.2.3: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .[doc]
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml doc/source/ "${OUTPUT_PATH}/$@"
7.0.0: check_env_vars venv-3.9 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .[doc]
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml doc/source/ "${OUTPUT_PATH}/$@"
5.1.5 6.3.1: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .[doc]
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml doc/source/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|