mini_buildd.cli module¶
- mini_buildd.cli.log_test()¶
For debugging only
- mini_buildd.cli.log_info()¶
For debugging only
- class mini_buildd.cli.StdErrHandler¶
Bases:
StreamHandler
- SYSTEMD_PREFIX = {10: '<7>', 20: '<6>', 30: '<4>', 40: '<3>', 50: '<2>'}¶
Log levels that we use throughout the code (python defaults) mapped to numerical counterparts used in syslog/systemd
- LOG_FORMAT = '{systemd_prefix}{levelname[0]}: {message} [{threadName}({thread}), {name}({filename}:{lineno})]'¶
Generic log format
- emit(record)¶
Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.
- class mini_buildd.cli.DputCf(config_path='~/.dput.cf')¶
Bases:
object
Guess possible mini-buildd targets and their URL endpoints
- DEFAULT_PATH = '~/.dput.cf'¶
- first_target()¶
- target_completer(**_kwargs)¶
- first_http_url()¶
- http_url_completer(**_kwargs)¶
- get_target_ftp_url(target)¶
- get_target_http_url(target)¶
- class mini_buildd.cli.ArgumentDefaultsRawTextHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)¶
Bases:
RawTextHelpFormatter
,ArgumentDefaultsHelpFormatter
Custom argparse (for mini-buildd[-tool]) help formatter (mixin): We like to use raw text, but also have default values shown