Skip to content

Commit

Permalink
Add clean up and minor fix to Python makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Sirish <aditya@saky.in>
  • Loading branch information
adityasaky committed Dec 19, 2023
1 parent da0b843 commit afb94ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ all:
dev: $(VENV_STAMP)

$(VENV_STAMP): pyproject.toml
python -m venv env
python -m venv $(VENV)
$(VENV_BIN)/python -m pip install --upgrade pip
$(VENV_BIN)/python -m pip install -e .[$(INSTALL_EXTRA)]

Expand All @@ -49,7 +49,7 @@ reformat: $(VENV_STAMP)

.PHONY: test tests
test tests: $(VENV_STAMP)
. env/bin/activate && \
. $(VENV_BIN)/activate && \
pytest --cov=$(PY_MODULE) $(T) $(TEST_ARGS) && \
python -m coverage report -m $(COV_ARGS)

Expand All @@ -61,3 +61,7 @@ package: $(VENV_STAMP)
.PHONY: edit
edit:
$(EDITOR) $(ALL_PY_SRCS)

.PHONY: clean
clean:
rm -r $(VENV)

0 comments on commit afb94ae

Please sign in to comment.