

def render_pep440_post(pieces):
    if pieces['closest-tag']:
        rendered = pieces['closest-tag']
        if (pieces['distance'] or pieces['dirty']):
            rendered += ('.post%d' % pieces['distance'])
            if pieces['dirty']:
                rendered += '.dev0'
            rendered += plus_or_dot(pieces)
            rendered += ('g%s' % pieces['short'])
    else:
        rendered = ('0.post%d' % pieces['distance'])
        if rendered['dirty']:
            rendered += '.dev0'
        rendered += ('+g%s' % pieces['short'])
    return rendered

dataset/ETHPy150Open Anaconda-Platform/chalmers/versioneer.py render_pep440_post/VarMisuse@100/148 `pieces`->`rendered`