Build bundle¶
Build output¶
artifacts/
└── build/
├── build.json
├── spec.json
├── plan.json
├── explorer.json
├── packages/
│ └── project/
│ └── pump_analytics.py
└── runtime/
└── pyproject.toml
The build manifest names the Spec and plan artifacts. The plan includes each invocation's call data and semantic contract. See the execution plan reference for its contents.
Code manifest¶
The artifacts.code object describes the project's language and the paths of
its bundled requirements definition and source directory. The paths are relative
to the bundle and can be null when the corresponding artifact is absent.
{
"code": {
"language": "python",
"requirements": "runtime/pyproject.toml",
"src": "packages/project"
}
}
The builder validates these paths. Runtime metadata does not instruct Uptimely to install packages or launch a worker.
Packaged source code¶
packages/project/ contains the contents of the configured Python source directory. Runs use
this bundled copy by default, so editing or removing the original source does
not change which project code the saved build runs. Generated bytecode and source
symlinks are not included. Built-in wheel packaging is not supported.
Runtime requirements¶
The project code language is configured with code.language and defaults to
"python", the only supported language. code.requirements selects a
requirements definition file. If omitted, the Python packager discovers
requirements/pyproject.toml when present. A separate definition replaces the
root project's metadata rather than merging with it.
Without an explicit definition, the bundle takes only static
[project].requires-python and [project].dependencies from the root
pyproject.toml. Dependency markers are preserved. Build-system settings, tool
settings, and optional extras are not included. If neither field is present,
the bundle records the code language with a null requirements path. The example
sets code.requirements = "pyproject.toml" to use its root project metadata.
Use the metadata to choose a compatible interpreter and install the listed
dependencies in the target environment. The generated pyproject.toml is
runtime metadata, not an installable project or a lockfile. The build does not
install dependencies. See Python runtime preflight
for what the Engine checks before execution.
Source paths and overrides¶
build.json records the selected specification source and bundled source
directory. If the bundle has no project source, runs use the configured or
default source directory. --src-path and the Python run API can explicitly
override that selection.
To run a copied bundle, place it under artifacts/build/ in the target project
and supply the runtime configuration and inputs the plan uses. With Uptimely
Core and the declared dependencies installed on the target, run
uptimely run TARGET_PROJECT without --build. The original source checkout
is not needed when the bundle contains the project code.
The target needs write access to artifacts/ for the build lock and latest-run
artifacts, and to any configured output locations. Bind data paths through
runtime configuration rather than locating project data relative to the
bundled Python files.