From 6a74e515e15bea6e17358e29c806f1a32826451b Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Fri, 30 Jun 2023 13:41:51 -0700 Subject: [PATCH] bindings/python: make target to set up env --- gpt4all-bindings/python/makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gpt4all-bindings/python/makefile b/gpt4all-bindings/python/makefile index 07eeea99..a32ee93f 100644 --- a/gpt4all-bindings/python/makefile +++ b/gpt4all-bindings/python/makefile @@ -2,9 +2,12 @@ SHELL:=/bin/bash -o pipefail ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) PYTHON:=python3 -venv: +env: if [ ! -d $(ROOT_DIR)/env ]; then $(PYTHON) -m venv $(ROOT_DIR)/env; fi +dev: env + source env/bin/activate; pip install black isort pytest; pip install -e . + documentation: rm -rf ./site && mkdocs build @@ -22,4 +25,4 @@ isort: source env/bin/activate; isort --ignore-whitespace --atomic -w 120 gpt4all test: - source env/bin/activate; pytest -s gpt4all/tests \ No newline at end of file + source env/bin/activate; pytest -s gpt4all/tests