#NEWLINE# def _package_parameters( self , instance ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# params [ 'release' ] = str ( instance . get_option ( 'release' , default_value = 1 ) ) #NEWLINE# if ( '-' in params [ 'release' ] ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Malformed package release: %r' % params [ 'release' ] ) ) #NEWLINE# #UNINDENT# version_suffix = instance . get_option ( 'version_suffix' , default_value = '' ) #NEWLINE# if ( version_suffix and ( not version_suffix . startswith ( '.' ) ) ) : #NEWLINE# #INDENT# version_suffix = ( '.' + version_suffix ) #NEWLINE# #UNINDENT# params [ 'version_suffix' ] = version_suffix #NEWLINE# tests_package = instance . get_option ( 'tests_package' , default_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# params [ 'no_tests' ] = ( 0 if tests_package . get ( 'enabled' , True ) else 1 ) #NEWLINE# params [ 'exclude_from_test_env' ] = [ './bin' , './build*' ] #NEWLINE# params [ 'exclude_from_test_env' ] . extend ( tests_package . get ( 'exclude_from_env' , ( ) ) ) #NEWLINE# return params