ID: 7513f388e81bb9458be380407247b03c1502a9d2
48 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/pypa/pip.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/python-pip
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
21.3.1 22.3.1 23.0 23.3.1: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .
pip install -r docs/requirements.txt
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs/html/ "${OUTPUT_PATH}/$@"
20.3.4: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install "sphinx < 6" furo sphinx-inline-tabs
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs/html/ "${OUTPUT_PATH}/$@"
19.3.1: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install "sphinx < 6" furo sphinx-inline-tabs
# They use this custom theme
pip install python-docs-theme git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs/html/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|