-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (167 loc) · 5.15 KB
/
pyproject.toml
File metadata and controls
185 lines (167 loc) · 5.15 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "deepr-research"
version = "2.9.1"
description = "Research automation platform that replicates human research team workflows using AI"
readme = "README.md"
license = {text = "MIT"}
authors = [
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["research", "ai", "automation", "deep-research", "knowledge-graph", "llm"]
# Core dependencies - minimal install for CLI research
dependencies = [
"anthropic>=0.40.0,<1.0.0",
"openai>=1.0.0,<2.0.0",
"google-genai>=1.0.0,<2.0.0",
"python-dotenv>=1.0.0,<2.0.0",
"click>=8.1.0,<9.0.0",
"pydantic>=2.0.0,<3.0.0",
"aiofiles>=23.0.0,<25.0.0",
"colorama>=0.4.6,<1.0.0",
"rich>=13.0.0,<14.0.0",
"httpx>=0.23.0,<1.0.0",
"requests>=2.28.0,<3.0.0",
"aiohttp>=3.9.0,<4.0.0",
]
[project.optional-dependencies]
# Web UI and MCP server
web = [
"flask>=3.0.0,<4.0.0",
"flask-cors>=4.0.0,<5.0.0",
"flask-socketio>=5.3.0,<6.0.0",
"python-socketio>=5.10.0,<6.0.0",
"flasgger>=0.9.7,<1.0.0",
"flask-limiter>=3.5.0,<4.0.0",
]
# Azure cloud deployment
azure = [
"azure-identity>=1.12.0,<2.0.0",
"azure-servicebus>=7.11.0,<8.0.0",
"azure-storage-blob>=12.19.0,<13.0.0",
]
# Azure AI Foundry deep research
azure-foundry = [
"azure-ai-projects>=1.0.0b4",
"azure-ai-agents>=1.0.0b4",
"azure-identity>=1.12.0,<2.0.0",
]
# Document processing for experts
docs = [
"python-docx>=0.8.11,<2.0.0",
"beautifulsoup4>=4.12.0,<5.0.0",
"numpy>=1.24.0,<3.0.0",
]
# Full install with all features
full = [
"deepr-research[web,azure,azure-foundry,docs]",
]
# Development dependencies
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"black>=23.0.0",
"ruff>=0.15.1",
"hypothesis>=6.0.0",
]
[project.scripts]
deepr = "deepr.cli.main:main"
[project.urls]
Homepage = "https://github.com/blisspixel/deepr"
Documentation = "https://github.com/blisspixel/deepr/tree/main/docs"
Repository = "https://github.com/blisspixel/deepr"
Issues = "https://github.com/blisspixel/deepr/issues"
[tool.coverage.run]
source = ["deepr"]
omit = [
"deepr/cli/commands/*",
"deepr/web/*",
"deepr/utils/check_expert_status.py",
"deepr/utils/download_expert_reports.py",
"deepr/utils/integrate_pending_research.py",
"deepr/utils/retrieve_expert_reports.py",
]
[tool.coverage.report]
fail_under = 60
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "RUF"]
ignore = [
"E501", # line-too-long (handled by formatter)
"E402", # module-level-import-not-at-top (conditional imports)
"B904", # raise-without-from-inside-except (CLI error handlers)
"B007", # unused-loop-control-variable (harmless in dict iteration)
"UP007", # non-pep604-annotation (X | Y syntax requires 3.10+)
"RUF001", # ambiguous-unicode-character-string (intentional emoji/chars)
"RUF012", # mutable-class-default (dataclass fields use field())
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["F811", "F841", "E712", "B005", "B017", "RUF006"]
"tests/integration/**/*.py" = ["F401"]
"deepr/cli/**/*.py" = ["B023"]
[tool.pytest.ini_options]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
testpaths = ["tests"]
asyncio_mode = "auto"
norecursedirs = [
"archive",
".*",
"*.egg",
"_darcs",
"build",
"CVS",
"dist",
"node_modules",
"venv",
".venv",
]
addopts = ["-v", "--tb=short", "--strict-markers"]
filterwarnings = [
"ignore::DeprecationWarning:pydantic.*",
"ignore::RuntimeWarning:click.*",
]
markers = [
"unit: marks tests as unit tests (no API calls, always free)",
"integration: marks tests as integration tests (require API keys, may cost money)",
"e2e: marks tests as end-to-end tests (real APIs, costs money)",
"requires_api: marks tests that require API keys and may cost money",
"file_upload: marks tests that test file upload functionality (costs money)",
"research_modes: marks tests that test all 4 research modes (focus, docs, project, team)",
"expensive: marks tests that cost >$1 (run sparingly)",
"slow: marks tests as slow (may take >1 second)",
"property: marks tests as property-based tests using Hypothesis",
"security: marks tests as security-focused tests",
]
[tool.setuptools.package-data]
deepr = ["py.typed"]
[tool.setuptools.packages.find]
where = ["."]
include = ["deepr*"]
exclude = ["tests*", "docs*"]