#NEWLINE# def format_version( version , **config ) : #NEWLINE# #INDENT# trace ( 'scm version' , version ) #NEWLINE# trace ( 'config' , config ) #NEWLINE# version_scheme = callable_or_entrypoint ( 'setuptools_scm.version_scheme' , config [ 'version_scheme' ] ) #NEWLINE# local_scheme = callable_or_entrypoint ( 'setuptools_scm.local_scheme' , config [ 'local_scheme' ] ) #NEWLINE# main_version = version_scheme ( version ) #NEWLINE# trace ( 'version' , main_version ) #NEWLINE# local_version = local_scheme ( version ) #NEWLINE# trace ( 'local_version' , local_version ) #NEWLINE# return ( version_scheme ( version ) + local_scheme ( local_version ) )