Skip to content

Commit

Permalink
Merge pull request #45 from wei1793786487/main
Browse files Browse the repository at this point in the history
Provide setup. py for the project
  • Loading branch information
yanqiangmiffy authored Aug 8, 2024
2 parents 59efef3 + 2457528 commit 3d7b961
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ htmlcov/*
data/competitions/*
data/docs
data/nltk_data
huqie
huqie
dist
build
2 changes: 1 addition & 1 deletion gomate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
try:
from .version import version as __version__
from .version import __version__
except ImportError:
__version__ = "unknown version"

Expand Down
Empty file.
Empty file.
Empty file.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ readability==0.3.1
PyMuPDF==1.24.5
hanziconv==0.3.2
PyPDF2==3.0.1
gradio===3.50.2
gradio===3.50.2
loguru==0.5.3
23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
)

0 comments on commit 3d7b961

Please sign in to comment.