forked from Lightning-AI/lightning-thunder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 827 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: test clean docs
# assume you have installed need packages
export SPHINX_MOCK_REQUIREMENTS=0
test: clean
pip install -q -r requirements.txt -r requirements/test.txt
# use this to run tests
python -m coverage run --source thunder -m pytest thunder tests -v
python -m coverage report
get-sphinx-theme:
pip install -q awscli
mkdir -p dist/
aws s3 sync --no-sign-request s3://sphinx-packages/ dist/
pip install lai-sphinx-theme -f dist/
docs: clean get-sphinx-theme
pip install -e . --quiet -r requirements/docs.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html
cd docs ; python -m sphinx -b html -W --keep-going source build
clean:
# clean all temp runs
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf ./docs/build
rm -rf ./docs/source/**/generated
rm -rf ./docs/source/api
rm -rf _ckpt_*