From 18168decbb112d0045d2f9343d15bcf5699b57e5 Mon Sep 17 00:00:00 2001 From: sun Date: Fri, 26 Jul 2024 17:06:17 +0800 Subject: [PATCH 1/2] add setup.py --- .gitignore | 3 ++- gomate/__init__.py | 2 +- gomate/modules/refiner/__init__.py | 0 gomate/modules/reranker/__init__.py | 0 gomate/modules/rewriter/__init__.py | 0 requirements.txt | 3 ++- setup.py | 23 +++++++++++++++++++++++ 7 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 gomate/modules/refiner/__init__.py create mode 100644 gomate/modules/reranker/__init__.py create mode 100644 gomate/modules/rewriter/__init__.py create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 5ae3a53..a92903e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ htmlcov/* data/competitions/* data/docs data/nltk_data -huqie \ No newline at end of file +huqie +dist diff --git a/gomate/__init__.py b/gomate/__init__.py index d8bf472..8ae995c 100644 --- a/gomate/__init__.py +++ b/gomate/__init__.py @@ -1,5 +1,5 @@ try: - from .version import version as __version__ + from .version import __version__ except ImportError: __version__ = "unknown version" diff --git a/gomate/modules/refiner/__init__.py b/gomate/modules/refiner/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/gomate/modules/reranker/__init__.py b/gomate/modules/reranker/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/gomate/modules/rewriter/__init__.py b/gomate/modules/rewriter/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt index 4a66402..266dba0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -44,4 +44,5 @@ readability==0.3.1 PyMuPDF==1.24.5 hanziconv==0.3.2 PyPDF2==3.0.1 -gradio===3.50.2 \ No newline at end of file +gradio===3.50.2 +loguru==0.5.3 \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a1c2fdd --- /dev/null +++ b/setup.py @@ -0,0 +1,23 @@ +from setuptools import setup, find_packages +try: + from gomate.version import __version__ +except ImportError: + __version__ = "unknown version" + +# 读取 requirements.txt 文件中的内容 +with open('requirements.txt') as f: + required = f.read().splitlines() + +setup( + name="GoMate", + version=__version__, + author="gomate-community", + packages=find_packages(), + install_requires=required, + author_email="yanqiang@ict.ac.cn", + description="RAG Framework within Reliable input,Trusted output", + long_description=open('README.md').read(), + long_description_content_type='text/markdown', + url="https://github.com/gomate-community/GoMate", + python_requires='>=3.9', +) \ No newline at end of file From 2457528f4d6095db91f872350444a52ee1136632 Mon Sep 17 00:00:00 2001 From: sun Date: Fri, 26 Jul 2024 17:08:02 +0800 Subject: [PATCH 2/2] Update. gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a92903e..f14b668 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ data/docs data/nltk_data huqie dist +build \ No newline at end of file