-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathota.yaml
More file actions
93 lines (92 loc) · 2.87 KB
/
Copy pathota.yaml
File metadata and controls
93 lines (92 loc) · 2.87 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
#
# █████
# ░░███
# ██████ ███████ ██████
# ███░░███░░░███░ ░░░░░███
# ░███ ░███ ░███ ███████
# ░███ ░███ ░███ ███ ███░░███
# ░░██████ ░░█████ ░░████████
# ░░░░░░ ░░░░░ ░░░░░░░░
#
# Copyright (C) 2026 — 2026, Ota. All Rights Reserved.
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
# You may not use this file except in compliance with that License.
# Unless required by applicable law or agreed to in writing, software distributed under the
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
#
# If you need additional information or have any questions, please email: os@ota.run
version: 1
project:
name: basic-python
description: Minimal Python repo that shows Python toolchain ownership plus setup and verification
type: application
toolchains:
python:
version: "3.12"
package_managers:
uv: ">=0.7.0"
tasks:
setup:
description: Hydrate Python dependencies through the declared uv lane
prepare:
kind: dependency_hydration
medium: package_dependencies
source:
kind: uv
cwd: .
requirements:
toolchains:
- python
effects:
writes:
- .venv
network: true
network_kind: dependency_hydration
test:
description: Run the Python test suite
command:
exe: uv
args:
- run
- pytest
depends_on:
- setup
requirements:
toolchains:
- python
workflows:
default: verify
verify:
description: Canonical Python toolchain setup and verification path
setup:
task: setup
run:
task: test
notes: |
Use this when the repo front door is setup plus verification rather than a long-running dev
server.
`toolchains.python` keeps Python ownership under one toolchain contract instead of splitting it across
`runtimes.python` and ad hoc package-manager commands.
agent:
entrypoint: setup
default_task: test
safe_tasks:
- setup
- test
verify_after_changes:
- test
writable_paths:
- .venv
- docs
- tests
protected_paths:
- ota.yaml
notes: |
Use `ota validate` before changes and `ota workflows` to inspect the setup-plus-test path.
Keep Python ownership under `toolchains.python` and use `ota run test` to verify Python
changes.