# pbr.hooks package

## Submodules

## pbr.hooks.backwards module

class pbr.hooks.backwards.BackwardsCompatConfig(config)

  Bases: `BaseConfig`

  hook()
  section = 'backwards_compat'

## pbr.hooks.base module

class pbr.hooks.base.BaseConfig(config)

  Bases: `object`

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

## pbr.hooks.files module

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

  Bases: `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.files.unquote_path(path)

## pbr.hooks.metadata module

class pbr.hooks.metadata.MetadataConfig(config)

  Bases: `BaseConfig`

  get_name()
  hook()
  section = 'metadata'

## Module contents

pbr.hooks.setup_hook(config)

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

this page last updated: 2026-02-08 22:52:26

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug