<s> from pbr . hooks import base <EOL> from pbr import packaging <EOL> class MetadataConfig ( base . BaseConfig ) : <EOL> section = '<STR_LIT>' <EOL> def hook ( self ) : <EOL> self . config [ '<STR_LIT:version>' ] = packaging . get_version ( <EOL> self . config [ '<STR_LIT:name>' ] , self . config . get ( '<STR_LIT:version>' , None ) ) <EOL> packaging . append_text_list ( <EOL> self . config , '<STR_LIT>' , <EOL> packaging . parse_requirements ( ) ) <EOL> def get_name ( self ) : <EOL> return self . config [ '<STR_LIT:name>' ] </s>
