ID: f79f24d5f897235839262aea853f96ae5ff3e737
32 lines
—
637B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/wntrblm/nox.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/python-nox
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2018.10.17 2019.11.9 2020.12.31 2021.10.1 2022.11.21 2023.04.22: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements-test.txt
pip install .
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|