-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathpyproject.toml
135 lines (124 loc) · 3.02 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
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
# Do not add spaces around the '=' sign for any of the fields
# preceded by a marker comment as it affects the publish workflow.
#replace_package_name_marker
name="dspy"
#replace_package_version_marker
version="2.6.19"
description = "DSPy"
readme = "README.md"
authors = [{ name = "Omar Khattab", email = "[email protected]" }]
license = { text = "MIT License" }
requires-python = ">=3.9, <3.13"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3"
]
dependencies = [
"backoff>=2.2",
"joblib~=1.3",
"openai>=0.28.1",
"pandas>=2.1.1",
"regex>=2023.10.3",
"ujson>=5.8.0",
"tqdm>=4.66.1",
"datasets>=2.14.6",
"requests>=2.31.0",
"optuna>=3.4.0",
"pydantic>=2.0",
"magicattr>=0.1.6",
"litellm>=1.60.3",
"diskcache>=5.6.0",
"json-repair>=0.30.0",
"tenacity>=8.2.3",
"anyio",
"asyncer==0.0.8",
"cachetools>=5.5.0",
"cloudpickle>=3.0.0",
"rich>=13.7.1",
"numpy>=1.26.0,<2.2; python_version == '3.9'",
"numpy>=1.26.0; python_version >= '3.10'",
]
[project.optional-dependencies]
anthropic = ["anthropic>=0.18.0,<1.0.0"]
weaviate = ["weaviate-client~=4.5.4"]
aws = ["boto3~=1.34.78"]
dev = [
"pytest>=6.2.5",
"pytest-mock>=3.12.0",
"pytest-asyncio>=0.26.0",
"ruff>=0.3.0",
"pre-commit>=3.7.0",
"pillow>=10.1.0",
"datamodel_code_generator>=0.26.3",
"build>=1.0.3",
"litellm>=1.60.3; sys_platform == 'win32'",
"litellm[proxy]>=1.60.3; sys_platform != 'win32'",
"mcp>=1.5.0; python_version >= '3.10'",
]
mcp = ["mcp; python_version >= '3.10'"]
[tool.setuptools.packages.find]
where = ["."]
include = ["dspy", "dspy.*"]
exclude = ["tests", "tests.*"]
[tool.setuptools.package-data]
dspy = ["primitives/*.js"]
[project.urls]
homepage = "https://github.com/stanfordnlp/dspy"
[tool.coverage.run]
branch = true
omit = [
"*/__init__.py",
"*/test_*.py",
"*/tests/*.py",
"*/conftest.py",
"*/venv/*",
"*/virtualenv/*",
"*/.venv/*",
"*/.virtualenv/*",
"*/env/*",
"*/.env/*",
"*/setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == '__main__':",
"logger",
"try",
"except",
"^\\s*self\\.\\w+(:\\s*[^=]+)?\\s*=.*$",
"continue",
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"TID252", # Absolute imports
]
ignore = [
"E501", # Line too long
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
docstring-code-format = false
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint.per-file-ignores]
"**/{tests,testing,docs}/*" = ["ALL"]
"**__init__.py" = ["ALL"]