-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
121 lines (107 loc) · 2.34 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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
[project]
name = "yaaal"
# version = "0.beta"
description = "Yet Another AI Agent Library"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [ "version" ]
dependencies = [
"aisuite[all]>=0.1.7",
"asyncio>=3.4.3",
"chardet>=5.2",
"json-repair>=0.35",
"pydantic>=2.10",
"pydantic-settings>=2.7.1",
"python-dotenv>=1.0.1",
"requests>=2.32.3",
"tenacity>=9",
"tiktoken>=0.8",
]
[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"ipywidgets>=8.1.5",
"nest-asyncio>=1.6",
"notebook>=7.2.2",
]
test = [
"coverage>=7.6.9",
"pytest>=8.3.4",
"pytest-asyncio>=0.24",
"pytest-cov>=6",
"pytest-playwright>=0.6.2",
"pytest-responses>=0.5.1",
"responses>=0.25.3",
]
[tool.hatch.version]
path = "./src/VERSION"
pattern = "^(?P<version>.+?)(\n)"
[tool.hatch.build]
only-include = [ "./src/VERSION", "src/yaaal", "tests" ]
skip-excluded-dirs = true
sources = [ "src" ]
[tool.hatch.build.targets.sdist]
[tool.hatch.build.targets.wheel]
packages = [ "src/yaaal" ]
macos-max-compat = true
[tool.pytest.ini_options]
addopts = '''
-ra
--strict-markers
--ignore=docs/conf.py
--ignore=setup.py
--ignore=ci
--ignore=.eggs
--import-mode=importlib
--tb=short
'''
# --doctest-modules
# --doctest-glob=\*.rst
norecursedirs = [
".env",
".git",
".nox",
".pytest_cache",
".tox",
"__pycache__",
"dist",
"docs",
"build",
"migrations",
"notebooks",
"writeup",
]
python_files = [ "test_*.py", "*_test.py", "tests.py" ]
pythonpath = "src"
testpaths = [ "tests" ]
# log_cli = true
[tool.coverage.paths]
source = [ "src", "*/site-packages" ]
[tool.coverage.run]
branch = true
source = [ "src" ]
[tool.coverage.report]
show_missing = true
[tool.uv]
package = true
default-groups = [ "dev", "test" ]
python-preference = "managed"
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.pip]
prerelease = "if-necessary-or-explicit"
[tool.uv.sources]
yaaal = { path = "src/yaaal", editable = true }
aisuite = { git = "https://github.com/andrewyng/aisuite" }