-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
57 lines (49 loc) · 1.44 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import setuptools
from pylate.__version__ import __version__
with open(file="README.md", mode="r", encoding="utf-8") as fh:
long_description = fh.read()
base_packages = [
"sentence-transformers == 3.3.0",
"datasets >= 2.20.0",
"accelerate >= 0.31.0",
"voyager >= 2.0.9",
"sqlitedict >= 2.1.0",
"pandas >= 2.2.1",
"transformers == 4.46.2",
]
dev = [
"ruff >= 0.4.9",
"pytest-cov >= 5.0.0",
"pytest >= 8.2.1",
"pandas >= 2.2.1",
"mkdocs-material == 9.5.32",
"mkdocs-awesome-pages-plugin == 2.9.3",
"mkdocs-jupyter == 0.24.8",
"mkdocs_charts_plugin == 0.0.10",
"numpydoc == 1.8.0",
]
eval = ["ranx >= 0.3.16", "beir >= 2.0.0"]
api = ["fastapi >= 0.114.1", "uvicorn >= 0.30.6", "batched >= 0.1.2"]
setuptools.setup(
name="pylate",
version=f"{__version__}",
license="",
author="LightON",
description="A library for training and retrieval with ColBERT",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/lightonai/pylate",
keywords=[],
packages=setuptools.find_packages(),
install_requires=base_packages,
extras_require={
"eval": base_packages + eval,
"api": base_packages + api,
"dev": base_packages + dev + eval + api,
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
)