def sign_source_distribution(data):
 dist_dir = os.path.join(data['tagdir'], 'dist')
 for f in os.listdir(dist_dir):
  f = os.path.join(dist_dir, f)
  print ('\nSigning file %s' % f)
  exec_command('gpg', '--detach-sign', '-a', f)

def sign_source_distribution ( data ) : dist_dir = os . path . join ( data [ 'tagdir' ] , 'dist' ) for f in os . listdir ( dist_dir ) : f = os . path . join ( dist_dir , f ) print ( '\nSigning file %s' % f ) exec_command ( 'gpg' , '--detach-sign' , '-a' , f )
sign the tgz or zip archive that will be uploaded to pypi .