venvstacks.stacks.BuildEnvironment

class venvstacks.stacks.BuildEnvironment(stack_spec: StackSpec, runtimes: MutableMapping[LayerBaseName, RuntimeEnv], frameworks: MutableMapping[LayerBaseName, FrameworkEnv], applications: MutableMapping[LayerBaseName, ApplicationEnv], build_path: Path)

Interface to build specified layered environment stacks

Methods

all_environments()

Iterate over all defined environments.

built_environments()

Iterate over all environments that were built by this build process.

create_environments(*[, clean, lock])

Create build environments for specified layers

environments_to_build()

Iterate over all environments where building is requested or allowed.

environments_to_lock()

Iterate over all environments where locking is requested or allowed.

environments_to_publish()

Iterate over all environments where publication is requested or allowed.

export_environments()

Locally export environments for specified layers

get_unmatched_patterns(patterns)

Returns a list of the given patterns which do not match any environments

load_archive_metadata(env_metadata_dir, env)

Load previously published archive metadata

load_export_metadata(env_metadata_dir, env)

Load previously exported environment metadata

lock_environments(*[, clean])

Lock build environments for specified layers

publish_artifacts()

Publish metadata and archives for specified layers

runtimes_to_build()

Iterate over runtime environments where building is requested or allowed.

runtimes_to_lock()

Iterate over runtime environments where locking is requested or allowed.

select_layers(include[, lock, build, ...])

Selectively configure operations only on the specified environments

select_operations([lock, build, publish])

Configure the selected operations on all defined environments

venvstacks_to_build()

Iterate over non-runtime environments where building is requested or allowed.

Attributes

METADATA_DIR

METADATA_ENV_DIR

METADATA_MANIFEST

build_platform

requirements_dir_path

stack_spec

runtimes

frameworks

applications

build_path