From 7ff3623102d108590b46d815dae26c83e6851744 Mon Sep 17 00:00:00 2001 From: thinhlpg Date: Tue, 8 Apr 2025 05:58:11 +0000 Subject: [PATCH] chore: update .gitignore, modify Makefile for installation, and add pyproject.toml for project configuration --- .gitignore | 2 ++ Makefile | 3 +-- pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ requirements.txt | 19 ------------------- 4 files changed, 41 insertions(+), 21 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 049499e..0f7c25a 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,8 @@ graveyard/ eval_logs/ downloaded_model/ logs/ +*.code-workspace +data/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/Makefile b/Makefile index 2b8e2ce..32e77ba 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,7 @@ test: # Development dependencies install: - python -m venv venv && . venv/bin/activate && pip install --upgrade pip - pip install -r requirements.txt + pip install -e . && pip install -e third_party/FlashRAG # Code quality and style style: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b2854f2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" + +[project] +name = "src" +version = "0.0.1" +description = "A short description of the project." +authors = [ + { name = "Your name (or your organization/company/team)" }, +] +readme = "README.md" +classifiers = [ + "Programming Language :: Python :: 3", +] + +requires-python = "~=3.11.0" + +dependencies = [ + "datasets", + "faiss-cpu", + "langchain", + "langchain-community", + "Markdown", + "tokenizers", + "unsloth==2025.2.14", + "unsloth_zoo==2025.2.7", + "unstructured", + "vllm==0.7.2", + "transformers==4.49.0", + "ipykernel", + "python-dotenv", + "loguru", + "gradio", + "tensorboard", + "pytest", + "wandb" +] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 61a9f99..0000000 --- a/requirements.txt +++ /dev/null @@ -1,19 +0,0 @@ -datasets -faiss-cpu -langchain -langchain-community -Markdown -tokenizers -unsloth==2025.2.14 -unsloth_zoo==2025.2.7 -unstructured -vllm==0.7.2 - -transformers==4.49.0 -ipykernel -python-dotenv -loguru -gradio -tensorboard -pytest -wandb \ No newline at end of file