pbr.hooks package

Submodules

pbr.hooks.backwards module

class pbr.hooks.backwards.BackwardsCompatConfig(config)

Bases: pbr.hooks.base.BaseConfig

hook()
section = 'backwards_compat'

pbr.hooks.base module

class pbr.hooks.base.BaseConfig(config)

Bases: object

hook()
run()
save()
section = None

pbr.hooks.commands module

class pbr.hooks.commands.CommandsConfig(config)

Bases: pbr.hooks.base.BaseConfig

add_command(command)
hook()
save()
section = 'global'

pbr.hooks.files module

class pbr.hooks.files.FilesConfig(config, name)

Bases: pbr.hooks.base.BaseConfig

add_man_page(man_page)
add_man_path(man_path)
expand_globs()
get_man_sections()
hook()
save()
section = 'files'
pbr.hooks.files.get_man_section(section)
pbr.hooks.files.get_manpath()

pbr.hooks.metadata module

class pbr.hooks.metadata.MetadataConfig(config)

Bases: pbr.hooks.base.BaseConfig

get_name()
hook()
section = 'metadata'

Module contents

pbr.hooks.setup_hook(config)

Filter config parsed from a setup.cfg to inject our defaults.