thoth.adviser.pseudonyms package

Module contents

Pseudonym units implemented in adviser.

class thoth.adviser.pseudonyms.AliasPseudonym(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]

Bases: thoth.adviser.pseudonym.Pseudonym

A pseudonym that introduces package aliases based on the supplied configuration.

CONFIGURATION_DEFAULT = {'index_url': None, 'package_name': None, 'package_version': None}
CONFIGURATION_SCHEMA = <Schema({'package_name': <class 'str'>, 'package_version': Any(<class 'str'>, None, msg=None), 'index_url': Any(<class 'str'>, None, msg=None), 'aliases': <Schema([<Schema({'package_name': <class 'str'>, 'package_version': <class 'str'>, 'index_url': <class 'str'>}, extra=PREVENT_EXTRA, required=False) object>], extra=PREVENT_EXTRA, required=False) object>}, extra=PREVENT_EXTRA, required=False) object>
run(package_version: thoth.python.package_version.PackageVersion) → Generator[Tuple[str, str, str], None, None][source]

Create alternatives to packages based on the configuration supplied.

classmethod should_include(_: PipelineBuilderContext) → Generator[Dict[str, Any], None, None][source]

Register self, never.