-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (88 loc) · 2.24 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (88 loc) · 2.24 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lightning-ir"
version = "0.0.6"
authors = [
{name = "Ferdinand Schlatt", email = "ferdinand.schlatt@uni-jena.de"},
]
description = "Your one-stop shop for fine-tuning and running neural ranking models."
readme = "README.md"
license = {text = "Apache-2.0"}
keywords = ["information-retrieval"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.9"
dependencies = [
"transformers[torch]>=4.50.0,<5.0.0",
"datasets>=3.0.0",
"ir_datasets",
"ir-measures",
"lightning",
"pandas",
"jsonargparse[signatures]>=4.27.7",
"sentencepiece",
"protobuf",
]
[project.optional-dependencies]
test = [
"pytest>=8,<10",
"pytest-cov>=5,<8",
"sentence-transformers",
"faiss-cpu",
"pyseismic-lsr",
"omegaconf",
"colbert-ai",
"fast-plaid",
"lsr-benchmark",
# "xtr and pylate should be installed separately with --no-deps because it has fixed package versions which conflict with other packages"
# "xtr @ git+https://github.com/mjeensung/xtr-pytorch.git",
# "pylate",
]
adapters = [
"peft>=0.17.0",
]
dev = [
"ruff",
]
docs = [
"sphinx",
"myst-parser",
"sphinxawesome-theme",
"sphinx-toolbox",
]
[project.scripts]
lightning-ir = "lightning_ir.main:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["lightning_ir", "lightning_ir.*"]
exclude = ["examples*", "docs*", "tests*"]
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["lightning_ir"]
force-single-line = false
split-on-trailing-comma = true