From 518d6bd90761b4899ea0077d46a869b61fe5df62 Mon Sep 17 00:00:00 2001 From: Charles Zaloom Date: Thu, 12 Dec 2024 17:35:04 -0600 Subject: [PATCH] tweaking makefile --- Makefile | 18 ++++-------------- docs/contributing.md | 6 +++--- src/pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index bf0e922b6..4045badbb 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,8 @@ -.PHONY: install install-dev pre-commit tests external-tests clean help +.PHONY: install pre-commit tests clean help install: @echo "Installing from source..." - pip install -e src/[mistral, openai] - -install-dev: - pip install -e src/[all] + pip install -e src/[dev] pre-commit: @echo "Running pre-commit..." @@ -19,16 +16,9 @@ test: pytest tests/semantic_segmentation pytest tests/text_generation -clean: - @echo "Cleaning up temporary files..." - rm -rf .pytest_cache __pycache__ valor_lite.egg-info - help: @echo "Available targets:" - @echo " install Install the valor_lite library from source." - @echo " install-dev Install valor_lite along with development tools." + @echo " install Install from source with developer tools." @echo " pre-commit Run pre-commit." - @echo " tests Run unit tests." - @echo " integration-tests Run external integration tests." - @echo " clean Remove temporary files." + @echo " tests Run tests." @echo " help Show this help message." \ No newline at end of file diff --git a/docs/contributing.md b/docs/contributing.md index f4ae4b96a..5ade3331a 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -47,9 +47,9 @@ conda create --name valor python=3.10 conda activate valor ``` -Install the `valor-lite` module along with any packages required for development: +Install the `valor-lite` module from source: ```bash -make install-dev +make install ``` ### Running Tests @@ -63,5 +63,5 @@ make pre-commit Run all tests using: ```shell -make tests +make test ``` \ No newline at end of file diff --git a/src/pyproject.toml b/src/pyproject.toml index 1fe15d310..0b4ecfe0f 100644 --- a/src/pyproject.toml +++ b/src/pyproject.toml @@ -33,7 +33,7 @@ docs = [ "mkdocs-include-dir-to-nav", "mkdocs-swagger-ui-tag", ] -all = ["valor-lite[mistral, openai, test, docs]"] +dev = ["valor-lite[openai, mistral, test, docs]"] [tool.black] line-length = 79