provenance
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.psp.format_2025.provenance
¶
Provenance record assembly for PSPF attestation slots.
Functions¶
build_provenance
¶
build_provenance(
*,
builder_name: str,
builder_version: str,
build_timestamp: int,
platform_os: str,
platform_arch: str,
python_version: str,
launcher_language: str,
launcher_version: str,
launcher_hash: str,
signing_key_fingerprint: str | None = None,
) -> dict[str, Any]
Assemble a provenance record.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
builder_name
|
str
|
Name of the builder tool (e.g. "flavor-python"). |
required |
builder_version
|
str
|
Version of the builder tool. |
required |
build_timestamp
|
int
|
Unix timestamp (seconds since epoch). When SOURCE_DATE_EPOCH is set in the environment, pass its value here for reproducible builds. |
required |
platform_os
|
str
|
Target operating system (e.g. "linux", "darwin"). |
required |
platform_arch
|
str
|
Target architecture (e.g. "amd64", "arm64"). |
required |
python_version
|
str
|
Python interpreter version string. |
required |
launcher_language
|
str
|
Language of the launcher binary ("go" or "rust"). |
required |
launcher_version
|
str
|
Version of the launcher binary. |
required |
launcher_hash
|
str
|
Hash of the launcher binary (e.g. "sha256: |
required |
signing_key_fingerprint
|
str | None
|
Hex fingerprint of the signing key, or None if the package is unsigned. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Provenance record dict, JSON-serialisable. |