-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (166 loc) · 5.09 KB
/
Copy pathpyproject.toml
File metadata and controls
177 lines (166 loc) · 5.09 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
[project]
name = "qwenpaw"
dynamic = ["version"]
description = "QwenPaw is a **personal assistant** that runs in your own environment. It talks to you over multiple channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.) and runs scheduled tasks according to your configuration. **What it can do is driven by Skills — the possibilities are open-ended.** Built-in skills include cron, PDF/Office handling, news digest, file reading, and more; you can add custom skills. All data and tasks run on your machine; no third-party hosting."
readme = "README.md"
requires-python = ">=3.11,<3.14"
dependencies = [
"agentscope==2.0.2",
# agentscope-runtime is no longer needed: agentscope 2.0 ships the
# runtime (`agentscope.app`, `agentscope.session`, `agentscope.app._schema`)
# in-tree, replacing the standalone agentscope-runtime package.
"httpx>=0.27.0",
"packaging>=24.0",
"discord-py>=2.3",
"dingtalk-stream>=0.24.3",
"alibabacloud-dingtalk>=2.2.42",
"alibabacloud-tea-openapi>=0.4.4",
"alibabacloud-credentials>=0.3.0",
"alibabacloud-tea-util>=0.3.0",
"uvicorn>=0.40.0",
"apscheduler>=3.11.2,<4",
"playwright>=1.49.0",
"questionary>=2.1.1",
"mss>=9.0.0",
"reme-ai==0.4.0.4",
"transformers>=4.30.0",
"python-dotenv>=1.0.0",
"python-socks>=2.5.3",
"onnxruntime<1.24",
"lark-oapi>=1.5.3",
"python-telegram-bot>=20.0",
"slack-bolt>=1.22.0",
"twilio>=9.10.2",
"pywebview>=4.0",
"aiofiles>=24.1.0",
"paho-mqtt>=2.0.0",
"wecom-aibot-python-sdk==1.0.2",
"matrix-nio>=0.24.0",
"shortuuid>=1.0.0",
"google-genai>=1.67.0",
"tzdata>=2024.1",
"cryptography>=43.0.0",
"keyring>=25.0.0",
"pyyaml>=6.0",
"wcmatch>=10.0",
"json-repair>=0.30.0",
"segno>=1.6.6",
"modelscope>=1.35.0",
"huggingface_hub>=0.20.0",
"pillow>=10.0.0",
"agent-client-protocol>=0.9.0",
# Streaming-markdown terminal UI for the bundled `qwenpaw` TUI
# (v4+ adds the streaming Markdown widget).
"textual>=4.0",
"psutil>=6.0.0",
"openai>=2.0.0,<=2.33.0",
# anyio 4.13.0: _deliver_cancellation busy-loop / getpid storm (QwenPaw#2632)
"anyio>=4.0.0,<4.13.0",
"watchfiles>=0.22",
"orjson>=3.9",
# Coding Mode — Python LSP server bundled as a zero-config fallback
# so the `lsp` tool always works for .py files (see PROPOSAL §3.4).
"python-lsp-server[all]>=1.10",
# Coding Mode — multi-language AST pattern matcher used by ast_search.
# Pure-Python wrapper around a prebuilt Rust binary; PyPI distributes
# wheels for all three OSes.
"ast-grep-cli>=0.20",
]
[tool.setuptools.dynamic]
version = {attr = "qwenpaw.__version__.__version__"}
[tool.setuptools]
packages = { find = { where = ["src"] } }
include-package-data = true
[tool.setuptools.package-data]
# Dockerfile copies console build output to src/qwenpaw/console/ (no dist subdir).
"qwenpaw" = [
"console/**",
"agents/md_files/**",
"agents/skills/**",
"tokenizer/**",
"security/tool_guard/rules/**",
"security/skill_scanner/rules/**",
"security/skill_scanner/data/**",
"docs/*.md",
]
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project.scripts]
qwenpaw = "qwenpaw.cli.main:cli"
copaw = "qwenpaw.cli.main:cli"
# Optional doctor plugins: callable (DoctorRunContext) -> list[str]
# [project.entry-points."qwenpaw.doctor"]
# my_pkg = "my_pkg.doctor:doctor_notes"
# Legacy group "copaw.doctor" is still loaded when present.
[project.optional-dependencies]
test = [
"pytest>=8.3.5",
"pytest-asyncio>=0.23.0",
"pytest-cov>=6.2.1",
"pytest-xdist>=3.5.0",
"hypothesis>=6.0.0",
]
dev = [
"pre-commit>=4.2.0",
]
local = [
"huggingface_hub>=0.20.0",
]
adbpg = [
"psycopg2-binary==2.9.10",
]
whisper = [
"openai-whisper>=20231117",
]
full = [
"qwenpaw[local,whisper]",
]
sip = [
"pyVoIP>=1.6.0",
"dashscope>=1.0.0",
"dashscope-realtime>=0.1.0",
"audioop-lts; python_version >= '3.13'",
]
sip-livekit = [
"qwenpaw[sip]",
"livekit>=1.0.0",
"livekit-api>=0.6.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"p0: critical user flows (messaging, CRUD, global config, security); PR smoke gate",
"p1: supported features (settings, scoped overrides, helpers); nightly regression",
"p2: error paths, 404 handling, validation, contracts, metadata",
"unit: marks tests as unit tests",
"contract: marks tests as contract tests",
"integration: marks tests as integration tests",
"e2e: marks tests as end-to-end tests",
]
testpaths = [
"tests",
]
[tool.coverage.run]
source = ["src/qwenpaw"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"pass",
]
fail_under = 30
show_missing = true
[tool.coverage.html]
directory = "htmlcov"