chore: update .gitignore, modify Makefile for installation, and add pyproject.toml for project configuration

main
thinhlpg 1 month ago
parent eebf914a81
commit 7ff3623102

2
.gitignore vendored

@ -15,6 +15,8 @@ graveyard/
eval_logs/ eval_logs/
downloaded_model/ downloaded_model/
logs/ logs/
*.code-workspace
data/
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/

@ -11,8 +11,7 @@ test:
# Development dependencies # Development dependencies
install: install:
python -m venv venv && . venv/bin/activate && pip install --upgrade pip pip install -e . && pip install -e third_party/FlashRAG
pip install -r requirements.txt
# Code quality and style # Code quality and style
style: style:

@ -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"
]

@ -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
Loading…
Cancel
Save