Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
195 lines (183 loc) · 5.88 KB
/
Copy pathpyproject.toml
File metadata and controls
195 lines (183 loc) · 5.88 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
[project]
name = "openadapt"
version = "1.16.0"
description = "Compile a demonstrated GUI workflow into a deterministic, locally executable program. Zero model calls on healthy runs; halts instead of guessing."
readme = "README.md"
requires-python = ">=3.10,<3.13"
license = "MIT"
authors = [
{name = "Richard Abrich", email = "richard@openadapt.ai"}
]
keywords = [
"gui",
"automation",
"workflow",
"verification",
"desktop",
"rdp",
"citrix",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# Base install: the CLI, the flagship demonstration compiler, and the browser
# driver used by the bundled tutorial. `pip install openadapt` must make the
# public `openadapt quickstart` command work without a second package install.
# OpenAdapt asks Playwright to download Chromium on the first browser action.
# Linux system libraries remain host prerequisites; `openadapt doctor` and Flow
# check them before the browser download. All other capabilities (capture, ml,
# evals, ...) remain opt-in extras.
dependencies = [
"click>=8.0.0",
"openadapt-flow[browser,hosted]>=1.29.0,<2.0.0",
# Day-1 partner kit: `pip install openadapt` must expose
# `openadapt-agent serve --allow-run` without a second package.
"openadapt-agent>=2.0.1,<3",
]
[project.optional-dependencies]
# Individual packages
browser = [
# Kept as a compatibility alias for existing install commands. The base
# launcher now selects this Flow contract because the bundled quickstart
# uses the browser. OpenAdapt requests Chromium on first browser use after
# the host dependency check passes.
"openadapt-flow[browser]>=1.29.0,<2.0.0",
]
# Local human desktop recording. Flow owns the supported capture adapter
# contract; the direct floor prevents an already-installed pre-1.0 Capture
# from satisfying the launcher's public recording path. FFmpeg remains a
# separately provisioned executable, not a Python-package dependency.
capture = [
"openadapt-capture>=1.2.0,<2.0.0",
"openadapt-flow[capture]>=1.29.0,<2.0.0",
]
# Replay substrate dependencies stay separate from capture: recording observes
# the human on the local interactive desktop, while replay may target a WAA
# agent, a native app, or a remote framebuffer.
windows = [
"openadapt-flow[windows]>=1.29.0,<2.0.0",
]
macos = [
"openadapt-flow[macos]>=1.29.0,<2.0.0; sys_platform == 'darwin'",
]
linux = [
"openadapt-flow[linux]>=1.29.0,<2.0.0; sys_platform == 'linux'",
]
rdp = [
"openadapt-flow[rdp]>=1.29.0,<2.0.0",
]
ml = [
"openadapt-ml>=0.2.0",
]
evals = [
"openadapt-evals>=0.1.0",
]
viewer = [
"openadapt-viewer>=0.1.0",
]
grounding = [
"openadapt-grounding>=0.1.0",
]
retrieval = [
"openadapt-retrieval>=0.1.0",
]
privacy = [
"openadapt-flow[privacy]>=1.29.0,<2.0.0",
]
# `flow` now ships in the base install (see `dependencies` above). This
# extra is kept for backward compatibility so `pip install openadapt[flow]`
# and the `all` bundle still resolve.
flow = [
"openadapt-flow>=1.29.0,<2.0.0",
]
# `openadapt-agent` also ships in the base install. Keep the extra so
# `pip install openadapt[agent]` still resolves.
agent = [
"openadapt-agent>=2.0.1,<3",
]
# Bundles
core = [
"openadapt[capture,ml,evals,viewer]",
]
all = [
# Cross-platform clients are always safe to resolve. Native bindings remain
# conditional so `openadapt[all]` never pulls PyObjC onto Linux/Windows or
# PyGObject onto macOS/Windows.
"openadapt[browser,core,grounding,retrieval,privacy,flow,windows,rdp,agent]",
"openadapt[macos]; sys_platform == 'darwin'",
"openadapt[linux]; sys_platform == 'linux'",
]
dev = [
"build>=1.2.0",
"pytest>=8.0.0",
"ruff>=0.1.0",
]
[project.scripts]
openadapt = "openadapt.cli:main"
[project.urls]
Homepage = "https://openadapt.ai"
Documentation = "https://docs.openadapt.ai"
Repository = "https://github.com/OpenAdaptAI/openadapt"
"Canonical Engine" = "https://github.com/OpenAdaptAI/openadapt-flow"
"Bug Tracker" = "https://github.com/OpenAdaptAI/openadapt/issues"
[build-system]
requires = ["hatchling==1.32.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["openadapt"]
# Keep the public source archive as narrow as the launcher package. Hatch's
# broad default selection otherwise picks up ignored workstation artifacts
# such as `.env`, local databases, screenshots, and model-call caches.
[tool.hatch.build.targets.sdist]
include = [
"/openadapt",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
"/pyproject.toml",
]
exclude = [
"/.cache",
"/.claude",
"/.env",
"/.worktrees",
"/build",
"/dist",
"/docs",
"/legacy",
"/openadapt.db",
"/output.png",
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
branch = "main"
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
# Dependencies are reviewed and locked before merge; semantic-release changes
# only the project version. Refresh that editable root in place with a
# dependency-free, offline script, then stage it in the generated version
# commit before the separate publish step builds it.
build_command = """
python scripts/verify_release_lock.py --write
git add uv.lock
"""
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "style", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]