diff --git a/Makefile b/Makefile index 35062b71a4932..f99985cb9175c 100644 --- a/Makefile +++ b/Makefile @@ -45,12 +45,8 @@ clean: rm -rf src/lightning_fabric/*/ rm -rf src/pytorch_lightning/*/ -test: clean +test: clean setup # Review the CONTRIBUTING documentation for other ways to test. - pip install -e . \ - -r requirements/pytorch/base.txt \ - -r requirements/fabric/base.txt \ - -r requirements/pytorch/test.txt \ # run tests with coverage python -m coverage run --source src/lightning/pytorch -m pytest src/lightning/pytorch tests/tests_pytorch -v @@ -59,18 +55,18 @@ test: clean docs: docs-pytorch -sphinx-theme: - pip install -q awscli +sphinx-theme: setup + uv pip install -q awscli mkdir -p dist/ aws s3 sync --no-sign-request s3://sphinx-packages/ dist/ - pip install lai-sphinx-theme -f dist/ + uv pip install lai-sphinx-theme -f dist/ docs-fabric: clean sphinx-theme - pip install -e .[all] --quiet -r requirements/fabric/docs.txt + uv pip install -e '.[all]' --quiet -r requirements/fabric/docs.txt cd docs/source-fabric && $(MAKE) html --jobs $(nproc) docs-pytorch: clean sphinx-theme - pip install -e .[all] --quiet -r requirements/pytorch/docs.txt + uv pip install -e '.[all]' --quiet -r requirements/pytorch/docs.txt cd docs/source-pytorch && $(MAKE) html --jobs $(nproc) update: