-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpyproject.toml
157 lines (146 loc) · 3.24 KB
/
pyproject.toml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[project]
name = "TapeAgents"
version = "0.1.4"
requires-python = ">= 3.10, <3.13"
description = "TapeAgents framework for building, tuning and evaluating LLM Agents"
authors = [
{ name = "Dzmitry Bahdanau" },
{ name = "Oleh Shliazhko" },
{ name = "Alexandre Piché" },
{ name = "Jordan Prince Tremblay" },
]
license = { text = "Apache-2.0" }
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"browsergym~=0.13",
"fastapi~=0.115",
"gradio~=5.11",
"hydra-core~=1.3",
"jsonref~=1.1",
"langchain-community~=0.3",
"langchain-core~=0.1",
"levenshtein~=0.25",
"litellm~=1.51",
"openai~=1.55",
"pathvalidate~=3.2",
"podman~=5.0",
"pydantic~=2.9",
"pyyaml~=6.0",
"tavily-python~=0.3",
"termcolor~=2.4",
"tqdm~=4.66",
]
[project.urls]
"GitHub" = "https://github.com/ServiceNow/TapeAgents"
[dependency-groups]
dev = [
"dspy-ai~=2.4",
"ipykernel~=6.29",
"mkdocs~=1.6",
"mkdocs-gen-files~=0.5",
"mkdocs-git-revision-date-localized-plugin~=1.3",
"mkdocs-literate-nav~=0.6",
"mkdocs-material~=9.5",
"mkdocs-section-index~=0.3",
"mkdocstrings~=0.27",
"mkdocstrings-python~=1.12",
"nbconvert~=7.16",
"pip-audit>=2.7.3",
"pytest~=8.3",
"ruff~=0.6",
"testbook~=0.4",
"tox~=4.0",
]
[project.optional-dependencies]
converters = [
"beautifulsoup4~=4.12",
"easyocr~=1.7",
"ffmpeg-python~=0.2",
"lxml[html-clean]~=5.2",
"mammoth~=1.8",
"markdownify~=0.13",
"openai-whisper>=20240930",
"openpyxl~=3.1",
"pandas~=2.2",
"pdf2image~=1.17",
"pdfminer-six>=20240706",
"puremagic~=1.26",
"pydub~=0.25",
"pyparsing~=3.1",
"python-pptx~=0.6",
"readability-lxml>=0.8",
"webvtt-py~=0.5",
"xlrd~=2.0",
"youtube-transcript-api~=0.6",
"yt-dlp>=2024.12.13",
]
finetune = [
"accelerate~=1.2.0",
"datasets~=2.21",
"deepspeed~=0.15.4",
"numpy~=1.26",
"peft~=0.12",
"tokenizers~=0.20",
"transformers~=4.45",
"vllm~=0.6.6.post1",
"wandb~=0.19",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = [
"examples/rl_gsm8k/deepseek_math_eval/"
]
[tool.ruff.lint]
extend-select = [
"I", # isort rules
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: requires gpu",
"multi_gpu: requires more than 1 gpu",
]
[tool.tox]
min_version = "4"
requires = ["tox-uv>=1"]
env_list = ["type", "3.10", "3.11", "3.12", "3.13"]
skip_missing_interpreters = false
[tool.tox.env_run_base]
description = "Run test under {base_python}"
deps = [
"pytest>=8"
]
commands = [
[
"pytest",
"-s",
"--color=yes",
"-m",
"not slow",
"tests/",
"--ignore=tests/finetune/",
"--ignore=tests/examples/",
],
]
[tool.tox.env.type]
description = "run type check on code base"
deps = [
"mypy==1.11.2",
"types-cachetools>=5.5.0.20240820",
"types-chardet>=5.0.4.6",
]
commands = [["mypy", "tapeagents"]]