-
Notifications
You must be signed in to change notification settings - Fork 114
/
setup.py
34 lines (31 loc) · 1.14 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from setuptools import setup, find_packages
with open("requirements.txt",encoding='utf-8') as fp:
requirements = fp.read().splitlines()
with open("README.md", "r",encoding='utf-8') as fh:
long_description = fh.read()
version = {}
with open("flashrag/version.py", encoding="utf8") as fp:
exec(fp.read(), version)
extras_require = {
'core': requirements,
'retriever': ['pyserini', 'sentence-transformers>=3.0.1'],
'generator': ['vllm==0.5.5']
}
extras_require['full'] = sum(extras_require.values(), [])
setup(
name="flashrag-dev",
version=version['__version__'],
packages=find_packages(),
url="https://github.com/RUC-NLPIR/FlashRAG",
license="MIT License",
author="Jiajie Jin, Yutao Zhu, Chenghao Zhang, Xinyu Yang, Zhicheng Dou",
author_email="[email protected]",
description="A library for efficient Retrieval-Augmented Generation research",
long_description=long_description,
long_description_content_type="text/markdown",
package_data={"": ["*.yaml"]},
include_package_data=True,
install_requires=extras_require['core'],
extras_require=extras_require,
python_requires=">=3.9",
)