thoth.adviser.boots package

Submodules

thoth.adviser.boots.fully_specified_environment module

A boot to check for fully specified environment.

class thoth.adviser.boots.fully_specified_environment.FullySpecifiedEnvironment(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot to check for fully specified environment.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

thoth.adviser.boots.platform module

A boot that checks for platform used and adjust to the default one if not provided explicitly.

class thoth.adviser.boots.platform.PlatformBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot that checks for platform used and adjust to the default one if not provided explicitly.

CONFIGURATION_DEFAULT = {'default_platform': 'linux-x86_64'}
CONFIGURATION_SCHEMA = <Schema({'default_platform': <class 'str'>}, extra=PREVENT_EXTRA, required=False) object>
run() → None[source]

Check for platform configured and adjust to the default one if not provided by user.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

thoth.adviser.boots.python_version module

A boot to check Python version configuration used in adviser.

class thoth.adviser.boots.python_version.PythonVersionBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot that checks Python3 configuration used by user.

run() → None[source]

Check Python configuration used by user.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always for adviser.

thoth.adviser.boots.rhel_version module

A boot to adjust RHEL version to its major version.

class thoth.adviser.boots.rhel_version.RHELVersionBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot that changes version of RHEL used.

RHEL guarantees ABI compatibility across major minor releases.

run() → None[source]

Discard any minor release in RHEL.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

thoth.adviser.boots.solved_software_environment module

A boot to check for solved software environment before running any resolution.

class thoth.adviser.boots.solved_software_environment.SolvedSoftwareEnvironmentBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot to check for solved software environment before running any resolution.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

thoth.adviser.boots.ubi module

A boot to remap UBI to RHEL.

class thoth.adviser.boots.ubi.UbiBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

Remap UBI to RHEL.

As UBI has ABI compatibility with RHEL, remap any UBI to RHEL.

run() → None[source]

Remap UBI to RHEL as Thoth keeps track of RHEL and UBI is ABI compatible.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

thoth.adviser.boots.version_clash module

A boot to check for version clashes in packages and dev packages.

class thoth.adviser.boots.version_clash.VersionClashBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

Check for version clashes in packages and dev-packages.

Note the implementation does not resolve, so just exact match is checked. Clashes during resolution are reported by resolver.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

Module contents

Boot units implemented in adviser.

class thoth.adviser.boots.UbiBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

Remap UBI to RHEL.

As UBI has ABI compatibility with RHEL, remap any UBI to RHEL.

run() → None[source]

Remap UBI to RHEL as Thoth keeps track of RHEL and UBI is ABI compatible.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

class thoth.adviser.boots.PythonVersionBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot that checks Python3 configuration used by user.

run() → None[source]

Check Python configuration used by user.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always for adviser.

class thoth.adviser.boots.SolvedSoftwareEnvironmentBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot to check for solved software environment before running any resolution.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

class thoth.adviser.boots.RHELVersionBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot that changes version of RHEL used.

RHEL guarantees ABI compatibility across major minor releases.

run() → None[source]

Discard any minor release in RHEL.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

class thoth.adviser.boots.PlatformBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot that checks for platform used and adjust to the default one if not provided explicitly.

CONFIGURATION_DEFAULT = {'default_platform': 'linux-x86_64'}
CONFIGURATION_SCHEMA = <Schema({'default_platform': <class 'str'>}, extra=PREVENT_EXTRA, required=False) object>
run() → None[source]

Check for platform configured and adjust to the default one if not provided by user.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

class thoth.adviser.boots.FullySpecifiedEnvironment(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot to check for fully specified environment.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

class thoth.adviser.boots.SolvedSoftwareEnvironmentBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

A boot to check for solved software environment before running any resolution.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.

class thoth.adviser.boots.VersionClashBoot(*, configuration: Dict[str, Any] = NOTHING, name: str = None)[source]

Bases: thoth.adviser.boot.Boot

Check for version clashes in packages and dev-packages.

Note the implementation does not resolve, so just exact match is checked. Clashes during resolution are reported by resolver.

run() → None[source]

Check for version clash in packages.

classmethod should_include(builder_context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Register self, always.