switched to pyproject.toml

This commit is contained in:
Ian Griffin 2024-10-28 12:36:54 +08:00
parent dbf8bb1766
commit 8f1e9c6fe7
2 changed files with 29 additions and 29 deletions

29
pyproject.toml Normal file
View File

@ -0,0 +1,29 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ragger"
version = "0.1.0"
description = "command line tool to RAG over multiple pieces of text"
authors = [{ name = "Ian Griffin", email = "migriffin@disroot.org" }]
license = "GPL-3.0"
# Dependencies
dependencies = [
"bs4"
"gradio"
"huggingface_hub"
"langchain"
"langchain-chroma"
"langchain-community"
"langchain-openai"
"langgraph"
"openai"
"pypdf==5.0.1"
"termcolor"
"tiktoken"
]
[project.scripts]
ragger = "ragger:main"

View File

@ -1,29 +0,0 @@
from setuptools import setup, find_packages
setup(
name='my_awesome_package',
version='0.1',
packages=find_packages(),
package_data={
'my_package': ['*.py', '!old.py']
},
entry_points={
'console_scripts': [
'ragger = my_package.ragger:main'
],
},
install_requires=[
'bs4'
'gradio'
'huggingface_hub'
'langchain'
'langchain-chroma'
'langchain-community'
'langchain-openai'
'langgraph'
'openai'
'pypdf==5.0.1'
'termcolor'
'tiktoken'
],
)