From 7566f8c3b2e2ab082fbfc643f6c0f736b4cf047d Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 22 Feb 2022 11:56:03 +1100 Subject: [PATCH] Ensure dependencies are installed --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f517c9b88..f5d703649 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,7 @@ sdist: .PHONY: test test: + python3 -c "import pytest" || python3 -m pip install pytest python3 -m pytest -qq .PHONY: valgrind @@ -103,6 +104,7 @@ valgrind: .PHONY: readme readme: + python3 -c "import markdown2" || python3 -m pip install markdown2 python3 -m markdown2 README.md > .long-description.html && open .long-description.html @@ -113,5 +115,7 @@ lint: .PHONY: lint-fix lint-fix: + python3 -c "import black" || python3 -m pip install black + python3 -c "import isort" || python3 -m pip install isort python3 -m black --target-version py37 . python3 -m isort .