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: Dict[str, Any] = {'index_url': None, 'package_name': None, 'package_version': None}¶
- CONFIGURATION_SCHEMA: voluptuous.schema_builder.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>¶