-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
286 lines (250 loc) · 7.75 KB
/
pyproject.toml
File metadata and controls
286 lines (250 loc) · 7.75 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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# pyproject.toml - Adana Project Configuration
# Copyright © 2025 Aitomatic, Inc. Licensed under the MIT License.
# =============================================================================
# Build System Configuration
# =============================================================================
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
# =============================================================================
# Project Metadata
# =============================================================================
[project]
name = "dana"
version = "0.1.3"
description = "Dana Agent - Domain-Aware Neurosymbolic Agents"
readme = "README.md"
requires-python = ">=3.12"
authors = [{ name = "Christopher Nguyen", email = "ctn@aitomatic.com" }]
maintainers = [
{ name = "Vinh Luong", email = "vinh@aitomatic.com" },
{ name = "Annie Ha", email = "annie@aitomatic.com" },
{ name = "Lam Nguyen", email = "lam@aitomatic.com" },
{ name = "Roy Vu", email = "roy@aitomatic.com" },
{ name = "Sang Dinh", email = "sang@aitomatic.com" },
]
# Core runtime dependencies - minimal set for LLM agent functionality
# Install with: pip install dana
dependencies = [
# Core LLM Integration
"openai>=1.55.3",
"anthropic==0.30.1",
"google-genai>=1.0.0",
# HTTP client for API calls
"httpx>=0.27.0,<0.28.0",
# Configuration management
"python-dotenv>=1.0.0",
"pydantic-settings>=2.11.0",
# Basic utilities
"structlog>=24.0.0",
"tqdm>=4.65.0",
# Web research dependencies (lightweight)
"requests>=2.31.0",
"beautifulsoup4>=4.12.0",
"html2text>=2024.2.26",
"rich>=14.2.0",
"langfuse>=4.0.1",
]
# Command-line entry points
[project.scripts]
dana-agent = "dana.apps.dana.__main__:main"
dana-agent-repl = "dana.apps.repl.__main__:main"
dana-code = "dana.apps.code.__main__:main"
dana-memory = "dana.lib.memory.cli:main"
dana-init = "dana.apps.init.__main__:main"
# Optional dependency groups
[project.optional-dependencies]
# Web scraping with full HTML/XML parsing - Install with: pip install dana[web]
web = [
"lxml>=5.0.0",
"readability-lxml>=0.8.1",
]
# Local LLM providers (Ollama, LlamaStack) - Install with: pip install dana[local]
local = [
"llama-stack>=0.3.0",
"ollama>=0.6.0",
]
# Data processing and visualization - Install with: pip install dana[data]
data = [
"pandas>=2.2.0,<2.3.0",
"matplotlib>=3.10.6",
]
# Semantic memory with vector search - Install with: pip install dana[memory]
memory = [
"lancedb>=0.20.0",
"sentence-transformers>=3.0.0",
]
# Knowledge graph support - Install with: pip install dana[knowledge]
knowledge = [
"rdflib>=7.5.0",
"rank-bm25>=0.2.2",
]
# Observability and tracing - Install with: pip install dana[observability]
observability = [
"langfuse>=3.5.1",
]
# Full installation with all optional features - Install with: pip install dana[full]
full = [
"dana[web,local,data,memory,knowledge,observability]",
]
dev = [
# Testing framework
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
# Code quality tools
"ruff>=0.13.0", # Fast Python linter and formatter
"mypy>=1.8.0", # Static type checking
"pre-commit>=4.3.0", # Git hooks for code quality
# Package management
"build>=1.0.0", # Package building tool
"twine>=5.0.0", # PyPI upload tool
# Development utilities
"langfuse>=3", # LLM observability
# REPL support (dev/interactive use)
"prompt-toolkit>=3.0.0",
"pygments>=2.0.0",
]
docs = [
# Minimal documentation setup
"mkdocs",
"mkdocs-material",
]
# =============================================================================
# Package Configuration
# =============================================================================
[tool.setuptools]
[tool.setuptools.packages.find]
where = ["."]
include = ["dana*"]
exclude = ["tests*", "examples*", "docs*", "tmp*", "dana.egg-info*", ".venv*", ".ruff_cache*", "__pycache__*"]
[tool.setuptools.package-data]
"*" = [
"**/*.py",
"**/*.na",
"**/*.lark",
"**/*.json",
"**/*.xml",
]
# =============================================================================
# Package Manager Configuration (uv)
# =============================================================================
[tool.uv]
package = true
preview = true # Enable preview features
resolution = "highest" # Use highest compatible versions
prerelease = "allow" # Allow pre-release versions for OpenTelemetry
python-preference = "only-managed" # Use uv-managed Python installations
compile-bytecode = true # Pre-compile .pyc files for performance
[tool.uv.sources]
# Future: Custom dependency sources
# =============================================================================
# Code Quality Tools
# =============================================================================
[tool.black]
line-length = 140
target-version = ["py312"]
[tool.ruff]
line-length = 140
target-version = "py312"
[tool.ruff.lint]
select = [
"B", # bugbear (common Python gotchas)
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade (modern Python features)
"N801", # naming conventions - class names
"N803", # naming conventions - argument names
"N804", # naming conventions - first argument names
"F401", # unused imports
"F821", # undefined names
"F822", # undefined names in __all__
"F841", # unused variables
]
ignore = [
"B008", # Function call in default argument
"B010", # setattr in class body
"B024", # Abstract base class without abstract methods (design pattern choice)
"B904", # raise ... from ...
"E203", # Whitespace before ':' (conflicts with Black)
"E402", # Module level import not at top of file (intentional in CLI)
"E501", # Line too long (handled by line-length)
"F403", # import * used; unable to detect undefined names (acceptable in __init__.py)
"N802", # Function name should be lowercase
"UP007", # use `X | Y` for type annotations
]
exclude = [
"*.na",
".git",
".pytest_cache",
".ruff_cache",
".venv",
"__pycache__",
"dana.egg-info",
"**/.archived/**",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
force-single-line = false
lines-after-imports = 2
known-first-party = ["apps", "common", "core", "frameworks", "lib", "specs"]
known-third-party = [
"openai",
"anthropic",
"httpx",
"structlog",
"tqdm",
"pytest",
"pytest-asyncio",
"pre-commit",
"ruff",
"matplotlib",
"pandas",
"mypy",
"build",
"twine",
"mkdocs",
"mkdocs-material",
"requests",
"bs4",
"lxml",
"readability",
"html2text",
]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.pyright]
reportAttributeAccessIssue = false
reportGeneralTypeIssues = false
reportAssignmentType = false
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_any_generics = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "dana.core.lang.interpreter.*"
disallow_untyped_defs = true
[tool.pytest.ini_options]
pythonpath = ["."]
markers = [
"windows_console: marks tests that require Windows console features (deselect with '-m \"not windows_console\"')",
"live: marks tests that use live LLM calls (deselect with '-m \"not live\"')",
"harness: marks robustness harness tests that require mock LLM infrastructure (deselect with '-m \"not harness\"')",
]
[dependency-groups]
dev = [
"langfuse>=3.5.1",
]